authorgravatar for dpav02@gmail.comdpav02 <dpav02@gmail.com> 2026-03-12 22:43:07-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-03-12 19:43:07-07:00
logdfd62cfb868935787560b88b0c399f0ce9081a9f
tree5029a201a922bfbf603db1d23bcb92c979c85bb1
parent64dc07a8e5a6d7e34de4e85a07126a9c04e462d3
signature Signed by PGP key B5690EEEBB952194

fix(desktop): show dialog after "Check for Updates" menu action (#955)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

1 files changed, 22 insertions(+), 1 deletions(-)

apps/desktop/src/main.ts+22-1
...@@ -535,7 +535,28 @@ function handleCheckForUpdatesMenuClick(): void {...@@ -535,7 +535,28 @@ function handleCheckForUpdatesMenuClick(): void {
535 if (!BrowserWindow.getAllWindows().length) {535 if (!BrowserWindow.getAllWindows().length) {
536 mainWindow = createWindow();536 mainWindow = createWindow();
537 }537 }
538 void checkForUpdates("menu");538 void checkForUpdatesFromMenu();
539}
540
541async function checkForUpdatesFromMenu(): Promise<void> {
542 await checkForUpdates("menu");
543
544 if (updateState.status === "up-to-date") {
545 void dialog.showMessageBox({
546 type: "info",
547 title: "You're up to date!",
548 message: `T3 Code ${updateState.currentVersion} is currently the newest version available.`,
549 buttons: ["OK"],
550 });
551 } else if (updateState.status === "error") {
552 void dialog.showMessageBox({
553 type: "warning",
554 title: "Update check failed",
555 message: "Could not check for updates.",
556 detail: updateState.message ?? "An unknown error occurred. Please try again later.",
557 buttons: ["OK"],
558 });
559 }
539}560}
540561
541function configureApplicationMenu(): void {562function configureApplicationMenu(): void {