Skip to content

Commit

Permalink
fix: saving last notification level in order to avoid repeated notifi…
Browse files Browse the repository at this point in the history
…cation when already sent
  • Loading branch information
luisnquin committed Feb 1, 2024
1 parent 2bc8050 commit 6532d55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6532d55

Please # to comment.