Repository navigation
中文
排查「退出后仍弹提示」的结论:软件并没有退出——开机自启的计划任务在登录时拉起了一个后台实例(-Guard,隐藏在托盘),它每 30 秒轮询,打印机断电后连续 3 次无响应于是报警。
本次改动:
- 单实例互斥:手动启动时若后台已有实例,弹出明确提示(告诉你去托盘停止或退出),不再静默并存两个实例。
- 自启可见:由开机自启拉起时会弹一次气泡「已随开机自动启动,哨兵正在后台运行」,不再让人误以为没启动。
- 不再代你开启自启:旧的 HKCU Run 迁移只做清理,不再自动重建计划任务(此前若以管理员运行会被自动打开自启)。
- 新增「离线提醒」开关(设置页,默认关闭):打印机关机/断网时只写日志、不弹通知;卡纸/缺纸/缺墨等异常照常提醒,不受影响。
- 自检扩至 35 个用例(新增 2 项离线提醒开关行为);exe 189,952 B。
English
Diagnosis of "notifications after exit": the app had not exited — the auto-start scheduled task launched a hidden -Guard instance at logon, polling every 30 s; after the printer was powered off, 3 consecutive unreachable polls triggered the alert.
- Single instance: launching manually while a background instance exists now shows a clear message instead of silently duplicating.
- Visible auto-start: the auto-started instance announces itself with a balloon.
- No silent auto-start enabling: legacy Run migration only cleans up, never re-creates the task.
- New "离线提醒" (offline alert) toggle in Settings, off by default: printer powered off / unreachable is logged only; jam / empty paper / low toner alerts are unaffected.
- Self-test now 35 cases; exe 189,952 B.
下载 / Download: PrinterStatusGuard.exe 或 PrinterStatusGuard-v1.1.4-portable.zip。