Skip to content

Commit

Permalink
Merge pull request #8 from wheresrofl/patch-1
Browse files Browse the repository at this point in the history
added create and write operations to handle cleanshot file operations
  • Loading branch information
PringlePot authored Nov 23, 2024
2 parents d90a5fe + 9d074eb commit 152324f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/listeners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn watch_file_system(app: &tauri::AppHandle) {
op: Ok(op),
cookie: _,
}) => {
if !(op.contains(notify::Op::RENAME)
if !(op.intersects(notify::Op::CREATE | notify::Op::WRITE | notify::Op::RENAME)
&& !path.file_name().unwrap().to_string_lossy().starts_with(".")
&& files::is_image(&path)
&& last_image != path.to_str().unwrap())
Expand Down

0 comments on commit 152324f

Please sign in to comment.