Auto-hide the electron menu bar
From https://github.com/vector-im/riot-web/issues/2962 This allows all the shortcuts to still work, and the menu bar can be un-hidden with the alt key.
This commit is contained in:
parent
641a5c244c
commit
83145e80e5
|
@ -175,6 +175,7 @@ electron.app.on('ready', () => {
|
||||||
icon: icon_path,
|
icon: icon_path,
|
||||||
width: 1024, height: 768,
|
width: 1024, height: 768,
|
||||||
show: false,
|
show: false,
|
||||||
|
autoHideMenuBar: true,
|
||||||
});
|
});
|
||||||
mainWindow.loadURL(`file://${__dirname}/../../webapp/index.html`);
|
mainWindow.loadURL(`file://${__dirname}/../../webapp/index.html`);
|
||||||
electron.Menu.setApplicationMenu(VectorMenu);
|
electron.Menu.setApplicationMenu(VectorMenu);
|
||||||
|
|
Loading…
Reference in New Issue