Skip to content

Commit

Permalink
Allow hiding menu bar with Alt key
Browse files Browse the repository at this point in the history
  • Loading branch information
siphomateke committed Jul 16, 2020
1 parent 4e6cfd5 commit 8502863
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/electron/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ export function createMainWindow() {
icon: iconConfig.windowIcon,
minWidth: 300,
minHeight: 250,
autoHideMenuBar: true,
});

mainWindow.setMenuBarVisibility(true);

if (isDevelopment) {
// Load the url of the dev server if in development mode
mainWindow.loadURL(process.env.WEBPACK_DEV_SERVER_URL);
Expand Down

0 comments on commit 8502863

Please sign in to comment.