(pomodoro) reset active clock only (#82)

It reverts changes of https://github.com/sectore/timr-tui/pull/76/commits/cc35f20f3e2d21dbb13792683cb078852e1c5b1c
This commit is contained in:
Jens Krause
2025-05-13 11:00:56 +02:00
committed by GitHub
parent 44af71c01c
commit 5f4c5bb8ed
2 changed files with 5 additions and 3 deletions
+4
View File
@@ -6,6 +6,10 @@
- (args) set `content` by given duration [#81](https://github.com/sectore/tick-tock-tui/pull/81)
### Fixes
- (pomodoro) reset active clock only [#82](https://github.com/sectore/tick-tock-tui/pull/82)
## v1.3.0 - 2025-05-06
###
+1 -3
View File
@@ -208,9 +208,7 @@ impl TuiEventHandler for PomodoroState {
if self.get_mode() == &Mode::Work && self.get_clock().is_done() {
self.round += 1;
}
// reset both clocks
self.clock_map.pause.reset();
self.clock_map.work.reset();
self.get_clock_mut().reset();
}
_ => return Some(event),
},