(pomodoro) reset active clock only (#82)
It reverts changes of cc35f20f3e
This commit is contained in:
parent
44af71c01c
commit
5f4c5bb8ed
@ -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
|
||||
|
||||
###
|
||||
|
||||
@ -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),
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user