Display window in initialize-application-window script

This commit is contained in:
Nathan Sobo
2015-09-30 12:04:17 -06:00
parent dba2a77e1f
commit 2737e05561
2 changed files with 3 additions and 4 deletions

View File

@@ -247,8 +247,6 @@ class Atom extends Model
#
# Call after this instance has been assigned to the `atom` global.
initialize: ->
@displayWindow() unless @inSpecMode()
@setBodyPlatformClass()
{devMode, safeMode, resourcePath} = @getLoadSettings()
@@ -762,7 +760,6 @@ class Atom extends Model
loadThemes: ->
@themes.load()
# Notify the browser project of the window's current project path
watchProjectPath: ->
@disposables.add @project.onDidChangePaths =>

View File

@@ -4,7 +4,7 @@ path = require 'path'
require './window'
getWindowLoadSettings = require './get-window-load-settings'
{devMode, resourcePath} = getWindowLoadSettings()
{resourcePath, isSpec, devMode} = getWindowLoadSettings()
# Add application-specific exports to module search path.
exportsPath = path.join(resourcePath, 'exports')
@@ -16,6 +16,8 @@ process.env.NODE_ENV ?= 'production' unless devMode
Atom = require './atom'
window.atom = Atom.loadOrCreate('editor')
atom.displayWindow() unless isSpec
atom.initialize()
atom.startEditorWindow()