fix unwanted menu bar on Windows

This commit is contained in:
Christopher Willis-Ford 2020-01-16 18:05:41 -08:00
parent 0b6652cde3
commit 5f5f24e722

View file

@ -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