[MM-18551] Remove (auto)updater from v4.3 (#1035)

* remove (auto)updater from v4.3
This commit is contained in:
Dean Whillier
2019-09-16 13:08:45 -04:00
committed by GitHub
parent 576bea19bd
commit 99fae82514
2 changed files with 3 additions and 50 deletions

View File

@@ -3,7 +3,7 @@
// See LICENSE.txt for license information.
'use strict';
import {app, dialog, ipcMain, Menu, shell} from 'electron';
import {app, dialog, Menu, shell} from 'electron';
function createTemplate(mainWindow, config, isDev) {
const settingsURL = isDev ? 'http://localhost:8080/browser/settings.html' : `file://${app.getAppPath()}/browser/settings.html`;
@@ -236,14 +236,7 @@ function createTemplate(mainWindow, config, isDev) {
label: `Version ${app.getVersion()}`,
enabled: false,
});
if (config.enableAutoUpdater) {
submenu.push({
label: 'Check for Updates...',
click() {
ipcMain.emit('check-for-updates', true);
},
});
}
template.push({label: '&Help', submenu});
return template;
}