Browse Source

Prevent showing Check for updates menu with flag

Fixes #1283
pull/1390/head
Ramiro Saenz 7 years ago
parent
commit
3fdd17d7d9
  1. 2
      electron/menu.js

2
electron/menu.js

@ -221,6 +221,7 @@ module.exports = function(config) {
},
{
label: locale['menu.help[5]'],
visible: process.argv.indexOf('--without-update') === -1,
click(item, win) {
const webContents = win.webContents;
const send = webContents.send.bind(win.webContents);
@ -291,6 +292,7 @@ module.exports = function(config) {
});
helpSubmenu.push({
label: `&`+locale['menu.help[5]'],
visible: process.argv.indexOf('--without-update') === -1,
click(item, win) {
const webContents = win.webContents;
const send = webContents.send.bind(win.webContents);

Loading…
Cancel
Save