mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Show window only after root view is attached
This prevents a white flicker when the page starts to load.
This commit is contained in:
@@ -75,6 +75,9 @@ _.extend atom,
|
||||
focus: ->
|
||||
@sendMessageToBrowserProcess('focus')
|
||||
|
||||
show: ->
|
||||
@sendMessageToBrowserProcess('show')
|
||||
|
||||
exit: (status) ->
|
||||
@sendMessageToBrowserProcess('exit', [status])
|
||||
|
||||
|
||||
@@ -4,3 +4,4 @@ require 'window'
|
||||
|
||||
pathToOpen = atom.getWindowState('pathToOpen') ? window.location.params.pathToOpen
|
||||
window.attachRootView(pathToOpen)
|
||||
atom.show()
|
||||
|
||||
Reference in New Issue
Block a user