Update initial paths with local paths only

This commit is contained in:
Mostafa Eweda
2015-05-15 11:38:48 -07:00
parent 526055cd70
commit 564692fd30

View File

@@ -763,7 +763,8 @@ class Atom extends Model
# Notify the browser project of the window's current project path
watchProjectPath: ->
@disposables.add @project.onDidChangePaths =>
@constructor.updateLoadSetting('initialPaths', @project.getPaths())
@constructor.updateLoadSetting('initialPaths',
@project.getPaths().filter((projectPath) -> fs.existsSync(projectPath)))
exit: (status) ->
app = remote.require('app')