From 3fdd17d7d9a859db601b4747d47540ad0050d579 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Tue, 16 Jan 2018 15:26:06 -0300 Subject: [PATCH] Prevent showing Check for updates menu with flag Fixes #1283 --- electron/menu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electron/menu.js b/electron/menu.js index da6aa85f..033d481c 100644 --- a/electron/menu.js +++ b/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);