From 70ca06eb1657df75103e4439a3c515e0a8c38aff Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 13 Jul 2023 17:07:19 +0000 Subject: [PATCH] fix: remove duplicate quit items on macOS (#49) Co-authored-by: V --- src/main/mainWindow.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index efe51c8..e4266c7 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -148,10 +148,9 @@ function initMenuBar(win: BrowserWindow) { app.quit(); } }, - { + isWindows && { label: "Quit", - accelerator: isWindows ? "Alt+F4" : void 0, - visible: isWindows, + accelerator: "Alt+F4", role: "quit", click() { app.quit();