Skip to content

Commit

Permalink
feat: Add settings entry to the system toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
1943time committed Jan 19, 2024
1 parent adefd6f commit 8405fd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ export const registerMenus = () => {
}
}
]

const showLeading = Menu.getApplicationMenu()?.getMenuItemById('showLeading')
if (showLeading) temp.unshift(showLeading)
const menu = Menu.buildFromTemplate(temp)

menu.popup({
window: BrowserWindow.fromWebContents(e.sender)!
})
Expand Down

0 comments on commit 8405fd4

Please sign in to comment.