mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Update initialPath on project path changes
atom.setPathToOpen() is now longer available and instead the load settings should be updated.
This commit is contained in:
@@ -127,7 +127,7 @@ window.deserializeEditorWindow = ->
|
||||
window.git = Git.open(project.getPath())
|
||||
project.on 'path-changed', ->
|
||||
projectPath = project.getPath()
|
||||
atom.setPathToOpen(projectPath)
|
||||
atom.getLoadSettings().initialPath = projectPath
|
||||
|
||||
window.git?.destroy()
|
||||
window.git = Git.open(projectPath)
|
||||
|
||||
Reference in New Issue
Block a user