We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d90a5fe + 9d074eb commit 152324fCopy full SHA for 152324f
src-tauri/src/listeners.rs
@@ -27,7 +27,7 @@ pub fn watch_file_system(app: &tauri::AppHandle) {
27
op: Ok(op),
28
cookie: _,
29
}) => {
30
- if !(op.contains(notify::Op::RENAME)
+ if !(op.intersects(notify::Op::CREATE | notify::Op::WRITE | notify::Op::RENAME)
31
&& !path.file_name().unwrap().to_string_lossy().starts_with(".")
32
&& files::is_image(&path)
33
&& last_image != path.to_str().unwrap())
0 commit comments