Fix auto-hiding of menu bar (#938)

This commit is contained in:
Joseph Turk 2018-07-08 02:27:18 -05:00 committed by Ben Gotow
parent c7868676f8
commit b603487d20

View file

@ -13,7 +13,7 @@ module.exports = class MailspringWindow extends EventEmitter {
constructor(settings = {}) { constructor(settings = {}) {
super(); super();
let frame, height, pathToOpen, resizable, title, width; let frame, height, pathToOpen, resizable, title, width, autoHideMenuBar;
this.browserWindow = null; this.browserWindow = null;
this.loaded = null; this.loaded = null;
this.isSpec = null; this.isSpec = null;
@ -36,6 +36,7 @@ module.exports = class MailspringWindow extends EventEmitter {
resourcePath: this.resourcePath, resourcePath: this.resourcePath,
exitWhenDone: this.exitWhenDone, exitWhenDone: this.exitWhenDone,
configDirPath: this.configDirPath, configDirPath: this.configDirPath,
autoHideMenuBar,
} = settings); } = settings);
if (!this.windowKey) { if (!this.windowKey) {
@ -58,7 +59,7 @@ module.exports = class MailspringWindow extends EventEmitter {
webPreferences: { webPreferences: {
directWrite: true, directWrite: true,
}, },
autoHideMenuBar: false, autoHideMenuBar,
}; };
if (this.neverClose) { if (this.neverClose) {