From 6532d55469db14044258e6690939587179d759e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Wed, 31 Jan 2024 22:56:08 -0500 Subject: [PATCH] fix: saving last notification level in order to avoid repeated notification when already sent --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index f39ea4b..11c831b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,6 +94,7 @@ fn main() { ); if last_notification_level != current_notification_level { + last_notification_level = current_notification_level; last_notification_handler.take().map(|h| h.close()); let result = send_desktop_notification(