1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2021-10-11 12:28:56 +03:00
commit 681dacfe27
162 changed files with 2489 additions and 1813 deletions

View file

@ -309,6 +309,10 @@ function createWindow () {
autoUpdater.downloadUpdate();
});
ipcMain.on('updateConfirm', (e) => {
exit(true);
});
ipcMain.on('updateCancel', (e) => {
isUpdating = false;
clearTimeout(timeoutUpdate);
@ -499,7 +503,7 @@ function menuInit () {
click: () => { send('commandGlobal', 'id'); }
},
{
label: 'Shortcuts',
label: 'Shortcuts', accelerator: 'Ctrl+Space',
click: () => { send('popup', 'shortcut'); }
},
{
@ -594,11 +598,7 @@ function menuInit () {
setConfig({ experimental: !config.experimental });
win.reload();
}
},
{
label: 'Graph',
click: () => { send('popup', 'graph', {}); }
},
}
]
});
};
@ -700,7 +700,12 @@ function autoUpdaterInit () {
isUpdating = false;
Util.log('info', 'Update downloaded: ' + JSON.stringify(info, null, 3));
send('update-downloaded');
exit(true);
if (!autoUpdate) {
exit(true);
} else {
send('update-confirm');
};
});
};