mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-23 06:02:30 -05:00
fix unwanted menu bar on Windows
This commit is contained in:
parent
0b6652cde3
commit
5f5f24e722
1 changed files with 3 additions and 0 deletions
|
@ -152,6 +152,9 @@ const createMainWindow = () => {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
const osxMenu = Menu.buildFromTemplate(MacOSMenu(app));
|
const osxMenu = Menu.buildFromTemplate(MacOSMenu(app));
|
||||||
Menu.setApplicationMenu(osxMenu);
|
Menu.setApplicationMenu(osxMenu);
|
||||||
|
} else {
|
||||||
|
// disable menu for other platforms
|
||||||
|
Menu.setApplicationMenu(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
// quit application when all windows are closed
|
// quit application when all windows are closed
|
||||||
|
|
Loading…
Reference in a new issue