Merge pull request #67 from th-ch/hide-menu

Option to hide menu
This commit is contained in:
th-ch
2020-11-28 18:45:53 +01:00
committed by GitHub
4 changed files with 18 additions and 1 deletions

View File

@ -9,6 +9,7 @@ const { setApplicationMenu } = require("./menu");
const {
autoUpdate,
getEnabledPlugins,
hideMenu,
isAppVisible,
isTrayEnabled,
setOptions,
@ -86,6 +87,7 @@ function createMainWindow() {
},
frame: !is.macOS(),
titleBarStyle: is.macOS() ? "hiddenInset" : "default",
autoHideMenuBar: hideMenu(),
});
if (windowMaximized) {
win.maximize();