We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d90a5fe commit 9d074ebCopy full SHA for 9d074eb
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