fix: pausing of timers/pomodoro not working
parent
e3fd65e98b
commit
8912151bdc
|
@ -34,7 +34,7 @@ impl Timer {
|
|||
|
||||
/// Returns `true` if this [`Timer`] has expired
|
||||
pub fn is_expired(&self) -> bool {
|
||||
let expired = Instant::now() - self.start > self.duration;
|
||||
let expired = self.remaining().is_zero();
|
||||
if expired {
|
||||
self.handle_expiration()
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue