From dfd62cfb868935787560b88b0c399f0ce9081a9f Mon Sep 17 00:00:00 2001 From: dpav02 Date: Thu, 12 Mar 2026 22:43:07 -0400 Subject: [PATCH] fix(desktop): show dialog after "Check for Updates" menu action (#955) Co-authored-by: Claude Opus 4.6 --- apps/desktop/src/main.ts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index 1631046a6ec460f5c82751c8ff42fd6f75eb5261..46068492950c57efcc2f5f034e550eeee663b684 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -535,7 +535,28 @@ function handleCheckForUpdatesMenuClick(): void { if (!BrowserWindow.getAllWindows().length) { mainWindow = createWindow(); } - void checkForUpdates("menu"); + void checkForUpdatesFromMenu(); +} + +async function checkForUpdatesFromMenu(): Promise { + await checkForUpdates("menu"); + + if (updateState.status === "up-to-date") { + void dialog.showMessageBox({ + type: "info", + title: "You're up to date!", + message: `T3 Code ${updateState.currentVersion} is currently the newest version available.`, + buttons: ["OK"], + }); + } else if (updateState.status === "error") { + void dialog.showMessageBox({ + type: "warning", + title: "Update check failed", + message: "Could not check for updates.", + detail: updateState.message ?? "An unknown error occurred. Please try again later.", + buttons: ["OK"], + }); + } } function configureApplicationMenu(): void { -- 2.54.0