Add "Check for Updates..." menu item
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// See LICENSE.txt for license information.
|
||||
'use strict';
|
||||
|
||||
import {app, dialog, Menu, shell} from 'electron';
|
||||
import {app, dialog, ipcMain, Menu, shell} from 'electron';
|
||||
|
||||
import settings from '../../common/settings';
|
||||
import buildConfig from '../../common/config/buildConfig';
|
||||
@@ -230,6 +230,16 @@ 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');
|
||||
},
|
||||
});
|
||||
template.push({label: '&Help', submenu});
|
||||
return template;
|
||||
|
Reference in New Issue
Block a user