Don't show window until it is finished loading

This commit is contained in:
probablycorey
2013-05-21 14:32:12 -07:00
parent 8008985120
commit f65fbdf7ae
2 changed files with 3 additions and 1 deletions

View File

@@ -4,12 +4,14 @@ $ = require 'jquery'
_ = require 'underscore'
less = require 'less'
ipc = require 'ipc'
remote = require 'remote'
require 'jquery-extensions'
require 'underscore-extensions'
require 'space-pen-extensions'
deserializers = {}
deferredDeserializers = {}
defaultWindowDimensions = {x: 0, y: 0, width: 800, height: 600}
### Internal ###
@@ -53,6 +55,7 @@ window.startEditorWindow = ->
atom.activatePackages()
keymap.loadUserKeymaps()
atom.requireUserInitScript()
remote.getCurrentWindow().show()
$(window).on 'unload', -> unloadEditorWindow(); false
$(window).focus()

View File

@@ -151,7 +151,6 @@ class AtomWindow
url += "&pathToOpen=#{pathToOpen}" if pathToOpen
@browserWindow.loadUrl url
@browserWindow.show()
handleEvents: ->
@browserWindow.on 'destroyed', =>