fix(win32): Hide menu bar of non-main windows

This commit is contained in:
Ben Gotow 2015-03-06 18:37:06 -08:00
parent a650158c8c
commit 9362f1e9c5
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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