Tweak auto-updater flow

This commit is contained in:
Yuya Ochiai
2017-09-07 23:23:46 +09:00
parent 9d31066136
commit fb47c287d9
3 changed files with 59 additions and 29 deletions

View File

@@ -230,15 +230,10 @@ function createTemplate(mainWindow, config, isDev) {
submenu.push({
label: `Version ${app.getVersion()}`,
enabled: false,
}, {
type: 'separator',
}, {
label: `Version ${app.getVersion()}`,
enabled: false,
}, {
label: 'Check for Updates...',
click() {
ipcMain.emit('check-for-updates');
ipcMain.emit('check-for-updates', true);
},
});
template.push({label: '&Help', submenu});