Skip to content

Commit dfd62cf

Browse files
dpav02claude
andauthored
fix(desktop): show dialog after "Check for Updates" menu action (#955)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 64dc07a commit dfd62cf

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

apps/desktop/src/main.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,28 @@ function handleCheckForUpdatesMenuClick(): void {
535535
if (!BrowserWindow.getAllWindows().length) {
536536
mainWindow = createWindow();
537537
}
538-
void checkForUpdates("menu");
538+
void checkForUpdatesFromMenu();
539+
}
540+
541+
async 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+
}
539560
}
540561

541562
function configureApplicationMenu(): void {

0 commit comments

Comments
 (0)