Show window only after root view is attached

This prevents a white flicker when the page
starts to load.
This commit is contained in:
Kevin Sawicki
2013-01-17 11:18:00 -08:00
parent 17e7e05e8b
commit 7f8a64b69c
6 changed files with 18 additions and 2 deletions

View File

@@ -75,6 +75,9 @@ _.extend atom,
focus: ->
@sendMessageToBrowserProcess('focus')
show: ->
@sendMessageToBrowserProcess('show')
exit: (status) ->
@sendMessageToBrowserProcess('exit', [status])

View File

@@ -4,3 +4,4 @@ require 'window'
pathToOpen = atom.getWindowState('pathToOpen') ? window.location.params.pathToOpen
window.attachRootView(pathToOpen)
atom.show()