generated from PlexSheep/rs-base
refactor(notify): let the desktop notification time out
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
ed929df3c2
commit
bf53e6c3ef
|
@ -455,12 +455,9 @@ impl Clock {
|
||||||
// not like the moon is crashing into the earth
|
// not like the moon is crashing into the earth
|
||||||
notify.urgency(notify_rust::Urgency::Normal);
|
notify.urgency(notify_rust::Urgency::Normal);
|
||||||
|
|
||||||
// The user wants to be notified, otherwise he wouldn't set this
|
// We don't need to have it be displayed for ever, the TUI shows that the time is up
|
||||||
// option. The notification should stay, until the user makes it go
|
// (100%) already.
|
||||||
// away. This is useful when the user leaves their workstation, comes
|
notify.timeout(notify_rust::Timeout::Default);
|
||||||
// back some time later, and the duration has been reached during the
|
|
||||||
// time he was away.
|
|
||||||
notify.timeout(notify_rust::Timeout::Never);
|
|
||||||
|
|
||||||
notify.summary(&format!(
|
notify.summary(&format!(
|
||||||
"Your countdown of {} is up.",
|
"Your countdown of {} is up.",
|
||||||
|
|
Reference in New Issue