From 232610c5799b67a3f3575b42ff596a4d5debcf3c Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Wed, 3 Apr 2024 11:32:53 +0100 Subject: [PATCH] fix: add settings to electron menu --- packages/desktop/lib/electron/menus/menu.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/desktop/lib/electron/menus/menu.ts b/packages/desktop/lib/electron/menus/menu.ts index e8bb15fe97..aa6c8cb1b2 100644 --- a/packages/desktop/lib/electron/menus/menu.ts +++ b/packages/desktop/lib/electron/menus/menu.ts @@ -122,7 +122,7 @@ function buildTemplate(): Electron.MenuItemConstructorOptions[] { } function getFirstSubmenuItems(): Electron.MenuItemConstructorOptions[] { - const menuItems: Electron.MenuItemConstructorOptions[] = [ + let menuItems: Electron.MenuItemConstructorOptions[] = [ { label: `${state.strings.about} ${app.name}`, click: openAboutWindow, @@ -137,12 +137,13 @@ function getFirstSubmenuItems(): Electron.MenuItemConstructorOptions[] { if (features?.electron?.importFromThirdParty?.enabled) { menuItems.push(commandMenuItem(state.strings.importThirdPartyProfiles, 'import-third-party-profile')) } - menuItems.concat([ + menuItems = [ + ...menuItems, { type: 'separator' }, commandMenuItem(state.strings.settings, 'menu-navigate-settings'), { type: 'separator' }, commandMenuItem(state.strings.diagnostics, 'menu-diagnostics'), - ]) + ] return menuItems }