fix: remove duplicate quit items on macOS
This commit is contained in:
parent
72f83c3ac4
commit
9f95b4f053
1 changed files with 3 additions and 4 deletions
|
@ -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();
|
||||
|
|
Reference in a new issue