fix: remove duplicate quit items on macOS

This commit is contained in:
Ryan Cao 2023-07-09 15:29:56 +08:00
parent 72f83c3ac4
commit 9f95b4f053
No known key found for this signature in database

View file

@ -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();