(pomodoro) reset active clock only (#82)

It reverts changes of cc35f20f3e
This commit is contained in:
Jens Krause 2025-05-13 11:00:56 +02:00 committed by GitHub
parent 44af71c01c
commit 5f4c5bb8ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

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
###

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),
},