diff --git a/src/bun/index.ts b/src/bun/index.ts index 907cc51..123bb79 100644 --- a/src/bun/index.ts +++ b/src/bun/index.ts @@ -245,6 +245,12 @@ ApplicationMenu.on("application-menu-clicked", (event) => { showAbout(); return; } + if (action === "quit") { + // Utils.quit() emits before-quit -> the guard runs (transfers/unsaved). + // Handled before the manager check so ⌘Q quits even with it open. + Utils.quit(); + return; + } // the manager is modal to the main window — don't drive main behind it if (manager.isOpen()) return; rpc.send.menuAction({ action }); diff --git a/src/bun/menu.ts b/src/bun/menu.ts index 02ec9c7..edf6506 100644 --- a/src/bun/menu.ts +++ b/src/bun/menu.ts @@ -42,7 +42,10 @@ export async function applyApplicationMenu(store: ConnectionStore): Promise