mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Rename pathToOpen load setting to initialPath
Use the initialPath as the window state serialization key. Also use the parent directory as the intitial path when the path to open is a file.
This commit is contained in:
@@ -113,12 +113,12 @@ window.deserializeEditorWindow = ->
|
||||
Project = require 'project'
|
||||
Git = require 'git'
|
||||
|
||||
pathToOpen = atom.getPathToOpen()
|
||||
{initialPath} = atom.getLoadSettings()
|
||||
|
||||
windowState = atom.getWindowState()
|
||||
|
||||
atom.packageStates = windowState.packageStates ? {}
|
||||
window.project = new Project(pathToOpen)
|
||||
window.project = new Project(initialPath)
|
||||
window.rootView = deserialize(windowState.rootView) ? new RootView
|
||||
|
||||
$(rootViewParentSelector).append(rootView)
|
||||
|
||||
Reference in New Issue
Block a user