Skip to content

Commit f05a802

Browse files
committed
better version popup
1 parent d7326ca commit f05a802

File tree

1 file changed

+8
-1
lines changed
  • packages/graphql-playground-electron/src/main

1 file changed

+8
-1
lines changed

packages/graphql-playground-electron/src/main/menu.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ export const buildTemplate = (
2222
{
2323
label: 'Check For Updates',
2424
click: async () => {
25-
const { updateInfo, downloadPromise } = await autoUpdater.checkForUpdates()
25+
const {
26+
updateInfo,
27+
downloadPromise,
28+
} = await autoUpdater.checkForUpdates()
2629
if (updateInfo.version !== autoUpdater.currentVersion) {
2730
const buttonIndex = dialog.showMessageBox({
2831
message: `New version available: ${updateInfo.version}`,
@@ -32,6 +35,10 @@ export const buildTemplate = (
3235
await downloadPromise
3336
autoUpdater.quitAndInstall()
3437
}
38+
} else {
39+
dialog.showMessageBox({
40+
message: 'Already up to date.',
41+
})
3542
}
3643
},
3744
},

0 commit comments

Comments
 (0)