mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Fix bug for macOS ‘Window’ menu with setup options
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user