fix notification being send when file isn't touched

This commit is contained in:
Robin Appelman 2026-04-14 23:38:57 +02:00
commit cf6a7cde42

View file

@ -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);
}
};