diff --git a/lib/ui/setup_wizard.dart b/lib/ui/setup_wizard.dart index 8f86ea3..5d7cfef 100644 --- a/lib/ui/setup_wizard.dart +++ b/lib/ui/setup_wizard.dart @@ -223,7 +223,11 @@ class _SetupWizardState extends State { Widget _stepPrinter(ColorScheme scheme) { final s = _printerStatus; - final ready = s != null && s.online; + // 就绪/打印中才算通过:Windows 后端的 online=只要枚举到打印机就 true, + // 不代表设备可用(status 可能是 0x80 离线)——必须看 statusText 如实显示 + final ready = s != null && + s.online && + (s.status == 0 || s.status == 0x00000002 || s.status == 0x00000005 || s.status == 0x00000006); final driverMissing = _driverInstalled == false; final bundledInstaller = DriverInstall.bundledInstallerPath(); return Column(