fix(update-center): cascade local and remote icon fallbacks

Keep update list icons from dropping straight to placeholders by retrying the remote store icon after local load failures. Align the update-center IPC and renderer types with the split local/remote icon contract.
This commit is contained in:
2026-04-11 11:41:01 +08:00
parent c16ba5536f
commit 180b88b5c0
11 changed files with 245 additions and 79 deletions

View File

@@ -8,12 +8,16 @@ type UpdateCenterSnapshot = {
currentVersion: string;
newVersion: string;
source: "aptss" | "apm";
localIcon?: string;
remoteIcon?: string;
ignored?: boolean;
}>;
tasks: Array<{
taskKey: string;
packageName: string;
source: "aptss" | "apm";
localIcon?: string;
remoteIcon?: string;
status:
| "queued"
| "downloading"