mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 15:56:10 +08:00
Fix auto-hiding of menu bar (#938)
This commit is contained in:
parent
c7868676f8
commit
b603487d20
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue