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",
|
label: "Quit",
|
||||||
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,
|
accelerator: wantCtrlQ ? "CmdOrCtrl+Q" : void 0,
|
||||||
visible: !isWindows,
|
|
||||||
role: "quit",
|
role: "quit",
|
||||||
|
visible: !isWindows,
|
||||||
click() {
|
click() {
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
isWindows && {
|
||||||
label: "Quit",
|
label: "Quit",
|
||||||
accelerator: isWindows ? "Alt+F4" : void 0,
|
accelerator: "Alt+F4",
|
||||||
visible: isWindows,
|
|
||||||
role: "quit",
|
role: "quit",
|
||||||
click() {
|
click() {
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|
Reference in a new issue