Fix bug for macOS ‘Window’ menu with setup options
This commit is contained in:
parent
236a23d1ea
commit
3286da29b3
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue