fixes #15
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user