Skip to content

Commit

Permalink
only hide menu when window is ready to show
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 25, 2016
1 parent f458849 commit aa883a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ loadAppWindow = ->
# Only show window when it has some content
mainWindow.once 'ready-to-show', () ->
if !global.windowHideWhileCred? || global.windowHideWhileCred != true
unless process.platform is 'darwin'
mainWindow.setAutoHideMenuBar(true)
mainWindow.show()
# short hand

Expand Down Expand Up @@ -114,7 +116,7 @@ app.on 'ready', ->
icon: path.join __dirname, 'icons', 'icon.png'
show: false
titleBarStyle: 'hidden-inset' if process.platform is 'darwin'
autoHideMenuBar : true unless process.platform is 'darwin'
# autoHideMenuBar : true unless process.platform is 'darwin'
}


Expand Down

0 comments on commit aa883a2

Please sign in to comment.