Commit f3baccb1 authored by Lukas Sommer's avatar Lukas Sommer
Browse files

Clear reports and restart directory watching if core directory is changed;

parent 8a46cd6a
...@@ -107,7 +107,7 @@ final object FileAssetManager extends Publisher { ...@@ -107,7 +107,7 @@ final object FileAssetManager extends Publisher {
def update(e: BasePathManager.Event): Unit = e match { def update(e: BasePathManager.Event): Unit = e match {
case BasePathManager.BasePathChanged(base, path) => case BasePathManager.BasePathChanged(base, path) =>
_dirs.synchronized { _dirs += base -> path } _dirs.synchronized { _dirs += base -> path }
if (e equals Entities.Cores) reports.clear(Some(Set(path))) if (base equals Entities.Cores) reports.clear(Some(Set(path)))
restartWatcher() restartWatcher()
publish(Events.BasePathChanged(base, path)) publish(Events.BasePathChanged(base, path))
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment