fix(launcher): keep copy maintenance progress across tab switches

This commit is contained in:
N0VAN0M4LY committed 2026-12-02 20:24:30 +08:00
1 parent fa7f68b942
commit be772c0cea
6 files changed
+112 -50

No files matched your search

+5 -1
View File
@@ -154,6 +154,10 @@ export const ipcContract = {
input: z.object({ id: CopyIdSchema }),
output: MaintenanceInfoSchema,
},
'copies:maintenanceState': {
input: z.void(),
output: MaintenanceProgressSchema.nullable(),
},
'copies:maintain': {
input: MaintenanceRequestSchema,
output: CopiesSchema,
@@ -334,7 +338,7 @@ export const ipcEvents = {
'event:app-update-progress': AppUpdateProgressSchema,
'event:launch-state': LaunchStateSchema,
'event:copies-changed': CopiesSchema,
'event:copy-maintenance': MaintenanceProgressSchema,
'event:copy-maintenance': MaintenanceProgressSchema.nullable(),
/** Another patch set became active (a pack was installed, or the bundled set restored). */
'event:patch-set-changed': ActivePatchSetSchema,
} as const;