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
luisnquin committed Feb 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -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(

0 comments on commit 6532d55

Please sign in to comment.