fix: remove duplicate quit items on macOS (#49)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Ryan Cao 2023-07-13 17:07:19 +00:00 committed by GitHub
parent 210ddbae06
commit 70ca06eb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,10 +148,9 @@ function initMenuBar(win: BrowserWindow) {
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();