mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-07 05:25:30 +08:00
fix(win32): Hide menu bar of non-main windows
This commit is contained in:
parent
a650158c8c
commit
9362f1e9c5
2 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,7 @@ class AtomWindow
|
|||
isSpec: null
|
||||
|
||||
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
|
||||
@resourcePath = path.normalize(@resourcePath) if @resourcePath
|
||||
|
@ -29,6 +29,7 @@ class AtomWindow
|
|||
frame: frame ? true
|
||||
resizable: resizable ? true
|
||||
icon: @constructor.iconPath
|
||||
'auto-hide-menu-bar': hideMenuBar
|
||||
'web-preferences':
|
||||
'direct-write': true
|
||||
'subpixel-font-scaling': false
|
||||
|
|
|
@ -412,6 +412,7 @@ class AtomApplication
|
|||
options = _.extend options,
|
||||
bootstrapScript: require.resolve("../window-secondary-bootstrap")
|
||||
safeMode: false
|
||||
hideMenuBar: true
|
||||
devMode: @devMode
|
||||
resourcePath: @resourcePath
|
||||
icon: @constructor.iconPath
|
||||
|
|
Loading…
Reference in a new issue