Reset @watchersByPath on atom.project.setPaths

This commit is contained in:
Ash Wilson
2017-08-01 15:55:28 -04:00
parent ee9ad53d91
commit 1285a89a4b

View File

@@ -194,7 +194,9 @@ class Project extends Model
repository?.destroy() for repository in @repositories
@rootDirectories = []
@repositories = []
watcher.dispose() for _, watcher in @watchersByPath
@watchersByPath = {}
@addPath(projectPath, emitEvent: false) for projectPath in projectPaths