1
0
mirror of synced 2025-11-09 12:57:13 +00:00
This commit is contained in:
Tom Gowan
2019-05-01 10:05:34 +10:00
parent bf6c59c40a
commit d15d28f6e6

View File

@@ -99,9 +99,11 @@ fn create_watch(
watcher watcher
.watch(&vp, RecursiveMode::NonRecursive) .watch(&vp, RecursiveMode::NonRecursive)
.map_err(Error::FileWatch)?; .map_err(Error::FileWatch)?;
watcher if vp != fp {
.watch(&fp, RecursiveMode::NonRecursive) watcher
.map_err(Error::FileWatch)?; .watch(&fp, RecursiveMode::NonRecursive)
.map_err(Error::FileWatch)?;
}
let (loader, rx) = Loader::create(vert_path, frag_path); let (loader, rx) = Loader::create(vert_path, frag_path);