From 3286da29b334bd4526c587b17707c2f230cec8f5 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Tue, 27 Feb 2018 16:36:50 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20for=20macOS=20=E2=80=98Window?= =?UTF-8?q?=E2=80=99=20menu=20with=20setup=20options?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/menu.js b/app/menu.js index 685fae46d8..11912e202f 100644 --- a/app/menu.js +++ b/app/menu.js @@ -276,9 +276,9 @@ function updateForMac(template, messages, options) { ); // Replace Window menu - const windowIndex = options.includeSetup ? 4 : 3; + const windowMenuTemplateIndex = includeSetup ? 4 : 3; // eslint-disable-next-line no-param-reassign - template[windowIndex].submenu = [ + template[windowMenuTemplateIndex].submenu = [ { accelerator: 'CmdOrCtrl+W', role: 'close',