Check getLoadSettings to decide to open initial buffer

This commit is contained in:
Ben Ogle
2015-03-03 12:34:54 -08:00
parent 80cd20193a
commit 80b1d89c62
2 changed files with 3 additions and 18 deletions

View File

@@ -632,7 +632,7 @@ class Atom extends Model
@windowEventHandler?.unsubscribe()
openInitialEmptyEditorIfNecessary: ->
if @project.getPaths().length is 0 and @workspace.getPaneItems().length is 0
if @getLoadSettings().initialPaths?.length is 0 and @workspace.getPaneItems().length is 0
@workspace.open(null, {isInitialEmptyEditor: true})
###