From cf6a7cde425e8b1d5b1815b3c7bd8d7a0b49a769 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 14 Apr 2026 23:38:57 +0200 Subject: [PATCH] fix notification being send when file isn't touched --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } };