Skip to content

Commit

Permalink
fix: add settings to electron menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Apr 3, 2024
1 parent 5c3bf9c commit 232610c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/desktop/lib/electron/menus/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
}

Expand Down

0 comments on commit 232610c

Please sign in to comment.