From 5f5f24e722bb1152557e9018d7a6aa8839f4934f Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Thu, 16 Jan 2020 18:05:41 -0800 Subject: [PATCH] fix unwanted menu bar on Windows --- src/main/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index a245583..1383b4e 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -152,6 +152,9 @@ const createMainWindow = () => { if (process.platform === 'darwin') { const osxMenu = Menu.buildFromTemplate(MacOSMenu(app)); Menu.setApplicationMenu(osxMenu); +} else { + // disable menu for other platforms + Menu.setApplicationMenu(null); } // quit application when all windows are closed