Skip to content

Commit 152324f

Browse files
authored
Merge pull request #8 from wheresrofl/patch-1
added create and write operations to handle cleanshot file operations
2 parents d90a5fe + 9d074eb commit 152324f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-tauri/src/listeners.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn watch_file_system(app: &tauri::AppHandle) {
2727
op: Ok(op),
2828
cookie: _,
2929
}) => {
30-
if !(op.contains(notify::Op::RENAME)
30+
if !(op.intersects(notify::Op::CREATE | notify::Op::WRITE | notify::Op::RENAME)
3131
&& !path.file_name().unwrap().to_string_lossy().starts_with(".")
3232
&& files::is_image(&path)
3333
&& last_image != path.to_str().unwrap())

0 commit comments

Comments
 (0)