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:
David Baker 2017-01-18 10:39:59 +00:00
parent 641a5c244c
commit 83145e80e5

View File

@ -175,6 +175,7 @@ electron.app.on('ready', () => {
icon: icon_path,
width: 1024, height: 768,
show: false,
autoHideMenuBar: true,
});
mainWindow.loadURL(`file://${__dirname}/../../webapp/index.html`);
electron.Menu.setApplicationMenu(VectorMenu);