generated from PlexSheep/rs-base
fix(notify): only notify in countdown mode (fixes a panic)
This commit is contained in:
parent
a56e454935
commit
265ac6c22c
|
@ -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