Browse Source

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.
pull/2975/head
David Baker 6 years ago
parent
commit
83145e80e5
  1. 1
      electron/src/electron-main.js

1
electron/src/electron-main.js

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

Loading…
Cancel
Save