generated from PlexSheep/rs-base
fix(notify): only notify in countdown mode (fixes a panic)
This commit is contained in:
parent
47268024fe
commit
9598df8285
|
@ -362,6 +362,13 @@ impl Clock {
|
||||||
debug!("complete error: {e:#?}");
|
debug!("complete error: {e:#?}");
|
||||||
});
|
});
|
||||||
self.did_notify = true;
|
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()
|
let tmp = LineGauge::default()
|
||||||
|
|
Reference in New Issue