Always set pathToOpen in RootView.initialize

Without this an untitled buffer will be opened when
Atom is reopened after being closed with no editors
open.
This commit is contained in:
Kevin Sawicki
2013-01-10 16:24:36 -08:00
parent 8bf16ba602
commit d27080cee6
2 changed files with 55 additions and 39 deletions

View File

@@ -49,6 +49,7 @@ class RootView extends View
@project = new Project(projectOrPathToOpen)
else
@project = projectOrPathToOpen
pathToOpen = @project?.getPath()
@pathToOpenIsFile = pathToOpen and fs.isFile(pathToOpen)
config.load()