From 58a36b3bba9f301b80091ba19d47a5223add5d79 Mon Sep 17 00:00:00 2001 From: Maxime LAFARIE Date: Tue, 9 Sep 2025 22:19:38 +0200 Subject: [PATCH] fix: electron menu bar for darwin --- src/main/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 61d124e3..c2fed2dc 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -489,7 +489,10 @@ async function createWindow(first = true): Promise { const menuBuilder = new MenuBuilder(mainWindow); menuBuilder.buildMenu(); - Menu.setApplicationMenu(null); + + if (process.platform !== 'darwin') { + Menu.setApplicationMenu(null); + } // Open URLs in the user's browser mainWindow.webContents.setWindowOpenHandler((edata) => {