From e99d13e7dfb173084d79b75ba37c606a082600d2 Mon Sep 17 00:00:00 2001 From: dpav02 Date: Thu, 12 Mar 2026 00:51:19 -0400 Subject: [PATCH] fix(desktop): show dialog after "Check for Updates" menu action on macOS Fixes #954 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 443492ada..60378dea6 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 {