mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
RootView (instead of Window) handles opening an empty buffer if no path is given.
This commit is contained in:
@@ -42,7 +42,11 @@ class RootView extends View
|
||||
@handleEvents()
|
||||
@setTitle()
|
||||
@loadUserConfiguration()
|
||||
@open(pathToOpen) if fs.isFile(pathToOpen) unless suppressOpen
|
||||
|
||||
if pathToOpen
|
||||
@open(pathToOpen) if fs.isFile(pathToOpen) and not suppressOpen
|
||||
else
|
||||
@open()
|
||||
|
||||
serialize: ->
|
||||
projectPath: @project?.getPath()
|
||||
|
||||
@@ -49,7 +49,6 @@ windowAdditions =
|
||||
RootView.deserialize(rootViewState)
|
||||
else
|
||||
new RootView(pathToOpen)
|
||||
@rootView.open() unless pathToOpen
|
||||
|
||||
$(@rootViewParentSelector).append @rootView
|
||||
|
||||
|
||||
Reference in New Issue
Block a user