fix(下载队列): 避免更新任务覆盖安装状态

This commit is contained in:
2026-04-13 12:57:24 +08:00
parent 763af5c37e
commit f83f8f6d80
9 changed files with 184 additions and 32 deletions
+3 -2
View File
@@ -14,6 +14,7 @@ import {
createUpdateCenterService,
type UpdateCenterIgnorePayload,
type UpdateCenterService,
type UpdateCenterStartTask,
} from "./service";
import type { UpdateCenterItem } from "./types";
@@ -435,8 +436,8 @@ export const registerUpdateCenterIpc = (
"update-center-unignore",
(_event, payload: UpdateCenterIgnorePayload) => service.unignore(payload),
);
ipc.handle("update-center-start", (_event, taskKeys: string[]) =>
service.start(taskKeys),
ipc.handle("update-center-start", (_event, tasks: UpdateCenterStartTask[]) =>
service.start(tasks),
);
ipc.handle("update-center-cancel", (_event, taskKey: string) =>
service.cancel(taskKey),