fix: pausing of timers/pomodoro not working

man-page
Moritz Böhme 2023-08-16 17:09:02 +02:00
parent e3fd65e98b
commit 8912151bdc
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 1 additions and 1 deletions

View File

@ -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()
};