diff --git a/src/main.rs b/src/main.rs index 663321e..7a70e13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -128,7 +128,7 @@ fn handle_watch_event( } if let Some(new_path) = handle_file(&file, rules, remove_duplicates) { maybe_link_target(&new_path, link_target); - if notify { + if notify && path != new_path { show_notification(new_path); } };