generated from PlexSheep/rs-base
fix(notify): only notify in countdown mode (fixes a panic)
cargo devel CI / cargo CI (push) Successful in 1m44s
Details
cargo devel CI / cargo CI (push) Successful in 1m44s
Details
This commit is contained in:
parent
186a96ef7e
commit
f4eef60a9e
|
@ -362,6 +362,13 @@ impl Clock {
|
|||
debug!("complete error: {e:#?}");
|
||||
});
|
||||
self.did_notify = true;
|
||||
if let Some(TimeBarLength::Countup(_)) = self.timebar_len() {
|
||||
let _ = self.notify().inspect_err(|e| {
|
||||
error!("could not notify: {e}");
|
||||
debug!("complete error: {e:#?}");
|
||||
});
|
||||
self.did_notify = true;
|
||||
}
|
||||
}
|
||||
|
||||
let tmp = LineGauge::default()
|
||||
|
|
Reference in New Issue