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