From 885de2686af0340a99fd615a5917b3752adaa68c Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 12 Jul 2024 15:16:46 +0200 Subject: [PATCH] refactor(notify): let the desktop notification time out --- src/clock.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index a3c59bc..eb2cdde 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -455,12 +455,9 @@ impl Clock { // not like the moon is crashing into the earth notify.urgency(notify_rust::Urgency::Normal); - // The user wants to be notified, otherwise he wouldn't set this - // option. The notification should stay, until the user makes it go - // away. This is useful when the user leaves their workstation, comes - // back some time later, and the duration has been reached during the - // time he was away. - notify.timeout(notify_rust::Timeout::Never); + // We don't need to have it be displayed for ever, the TUI shows that the time is up + // (100%) already. + notify.timeout(notify_rust::Timeout::Default); notify.summary(&format!( "Your countdown of {} is up.",