fix: pausing of timers/pomodoro not working
This commit is contained in:
parent
e3fd65e98b
commit
8912151bdc
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ impl Timer {
|
||||||
|
|
||||||
/// Returns `true` if this [`Timer`] has expired
|
/// Returns `true` if this [`Timer`] has expired
|
||||||
pub fn is_expired(&self) -> bool {
|
pub fn is_expired(&self) -> bool {
|
||||||
let expired = Instant::now() - self.start > self.duration;
|
let expired = self.remaining().is_zero();
|
||||||
if expired {
|
if expired {
|
||||||
self.handle_expiration()
|
self.handle_expiration()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue