File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
packages/graphql-playground-electron/src/main Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ export const buildTemplate = (
22
22
{
23
23
label : 'Check For Updates' ,
24
24
click : async ( ) => {
25
- const { updateInfo, downloadPromise } = await autoUpdater . checkForUpdates ( )
25
+ const {
26
+ updateInfo,
27
+ downloadPromise,
28
+ } = await autoUpdater . checkForUpdates ( )
26
29
if ( updateInfo . version !== autoUpdater . currentVersion ) {
27
30
const buttonIndex = dialog . showMessageBox ( {
28
31
message : `New version available: ${ updateInfo . version } ` ,
@@ -32,6 +35,10 @@ export const buildTemplate = (
32
35
await downloadPromise
33
36
autoUpdater . quitAndInstall ( )
34
37
}
38
+ } else {
39
+ dialog . showMessageBox ( {
40
+ message : 'Already up to date.' ,
41
+ } )
35
42
}
36
43
} ,
37
44
} ,
You can’t perform that action at this time.
0 commit comments