From ff48db7bd3a7b90b645d4fb7b59b509eabe28e09 Mon Sep 17 00:00:00 2001 From: Charles Vien Date: Mon, 12 Jan 2026 12:00:55 -0800 Subject: [PATCH] If an update is already downloaded and waiting, emit the Ready event to show the update prompt again instead of checking with the autoUpdater. --- apps/array/src/main/services/updates/service.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/array/src/main/services/updates/service.ts b/apps/array/src/main/services/updates/service.ts index 93bdd5323..bf7bf2254 100644 --- a/apps/array/src/main/services/updates/service.ts +++ b/apps/array/src/main/services/updates/service.ts @@ -76,6 +76,17 @@ export class UpdatesService extends TypedEventEmitter { return { success: false, error: "Already checking for updates" }; } + // If an update is already downloaded and ready, show the prompt again + // instead of checking (which would incorrectly report "up to date") + if (this.updateReady) { + log.info("Update already downloaded, showing prompt again", { + downloadedVersion: this.downloadedVersion, + }); + this.pendingNotification = true; + this.flushPendingNotification(); + return { success: true }; + } + this.checkingForUpdates = true; this.emitStatus({ checking: true }); this.performCheck();