(pomodoro/countdown) Change initial value (#79)

- While editing, an user can apply changes as a new initial value (pomodoro/countdown only).
- New keybinding: `[^s]save initial value` 
- Update keybinding: `[s]ave changes` (instead of `[Enter]`)
- Refactor event handling to re-structure `edit` / `non-edit` modes.
- Refactor footer to reflect latest keybindings
This commit is contained in:
Jens Krause
2025-05-02 12:39:26 +02:00
committed by GitHub
parent 6b068bbd09
commit 52ed8267be
7 changed files with 263 additions and 167 deletions

View File

@@ -143,6 +143,10 @@ impl<T> ClockState<T> {
&self.initial_value
}
pub fn set_initial_value(&mut self, duration: DurationEx) {
self.initial_value = duration;
}
pub fn get_current_value(&self) -> &DurationEx {
&self.current_value
}