mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(win32): Hide menu bar of non-main windows
This commit is contained in:
parent
a650158c8c
commit
9362f1e9c5
|
@ -18,7 +18,7 @@ class AtomWindow
|
||||||
isSpec: null
|
isSpec: null
|
||||||
|
|
||||||
constructor: (settings={}) ->
|
constructor: (settings={}) ->
|
||||||
{@resourcePath, pathToOpen, initialLine, initialColumn, @neverClose, @isSpec, @exitWhenDone, @safeMode, @devMode, frame, title, resizable} = settings
|
{@resourcePath, pathToOpen, initialLine, initialColumn, @neverClose, @isSpec, @exitWhenDone, @safeMode, @devMode, frame, title, resizable, hideMenuBar} = settings
|
||||||
|
|
||||||
# Normalize to make sure drive letter case is consistent on Windows
|
# Normalize to make sure drive letter case is consistent on Windows
|
||||||
@resourcePath = path.normalize(@resourcePath) if @resourcePath
|
@resourcePath = path.normalize(@resourcePath) if @resourcePath
|
||||||
|
@ -29,6 +29,7 @@ class AtomWindow
|
||||||
frame: frame ? true
|
frame: frame ? true
|
||||||
resizable: resizable ? true
|
resizable: resizable ? true
|
||||||
icon: @constructor.iconPath
|
icon: @constructor.iconPath
|
||||||
|
'auto-hide-menu-bar': hideMenuBar
|
||||||
'web-preferences':
|
'web-preferences':
|
||||||
'direct-write': true
|
'direct-write': true
|
||||||
'subpixel-font-scaling': false
|
'subpixel-font-scaling': false
|
||||||
|
|
|
@ -412,6 +412,7 @@ class AtomApplication
|
||||||
options = _.extend options,
|
options = _.extend options,
|
||||||
bootstrapScript: require.resolve("../window-secondary-bootstrap")
|
bootstrapScript: require.resolve("../window-secondary-bootstrap")
|
||||||
safeMode: false
|
safeMode: false
|
||||||
|
hideMenuBar: true
|
||||||
devMode: @devMode
|
devMode: @devMode
|
||||||
resourcePath: @resourcePath
|
resourcePath: @resourcePath
|
||||||
icon: @constructor.iconPath
|
icon: @constructor.iconPath
|
||||||
|
|
Loading…
Reference in a new issue