Skip to content

Commit

Permalink
fix: remove duplicate quit items on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Jul 12, 2023
1 parent 72f83c3 commit 9f95b4f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,15 @@ function initMenuBar(win: BrowserWindow) {
{
label: "Quit",
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,
visible: !isWindows,
role: "quit",
visible: !isWindows,
click() {
app.quit();
}
},
{
isWindows && {
label: "Quit",
accelerator: isWindows ? "Alt+F4" : void 0,
visible: isWindows,
accelerator: "Alt+F4",
role: "quit",
click() {
app.quit();
Expand Down

0 comments on commit 9f95b4f

Please sign in to comment.