Update loadSettingsJSON when paths change, fixed #13933

This commit is contained in:
Damien Guard
2017-07-11 20:46:09 -07:00
parent 68b7bf46dd
commit 269623c9ba

View File

@@ -309,6 +309,8 @@ class AtomWindow
setRepresentedDirectoryPaths: (@representedDirectoryPaths) ->
@representedDirectoryPaths.sort()
@loadSettings.initialPaths = @representedDirectoryPaths
@browserWindow.loadSettingsJSON = JSON.stringify(@loadSettings)
@atomApplication.saveState()
copy: -> @browserWindow.copy()