mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
merge
This commit is contained in:
commit
681dacfe27
162 changed files with 2489 additions and 1813 deletions
19
electron.js
19
electron.js
|
@ -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');
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue