Fix bug for macOS ‘Window’ menu with setup options

This commit is contained in:
Daniel Gasienica 2018-02-27 16:36:50 -05:00
parent 236a23d1ea
commit 3286da29b3
1 changed files with 2 additions and 2 deletions

View File

@ -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',