Header 状态改用 Checkstatus 查询并移除已发行
状态与 GetPrinterInfo 分离:启动仅拉色带/序列号,操作后通过 SAPI_PrinterCheckstatus 刷新状态文案。
This commit is contained in:
@@ -104,8 +104,7 @@ export function registerIpcHandlers(): void {
|
||||
const snapshot: PrinterStatusSnapshot = {
|
||||
ribbonType: cached?.ribbonType ?? '—',
|
||||
statusText: parsed.statusText,
|
||||
serialNo: cached?.serialNo ?? '—',
|
||||
printedCount: cached?.printedCount ?? 0
|
||||
serialNo: cached?.serialNo ?? '—'
|
||||
}
|
||||
configStore.set('lastPrinterStatus', snapshot)
|
||||
return ok({ statusText: parsed.statusText, statusCode: code })
|
||||
|
||||
Reference in New Issue
Block a user