fix: tick timer

This commit is contained in:
jk 2024-12-27 18:34:12 +01:00
parent 0673b8e1dd
commit 49365d3db4
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ async fn main() -> Result<()> {
};
// merge `Args` and `AppStorage`.
let app_args: AppArgs = (args, stg).into();
let app_args = AppArgs::from((args, stg));
let app_storage = App::new(app_args).run(terminal, events).await?.to_storage();
// store app state persistantly
storage.save(app_storage)?;

View File

@ -465,7 +465,7 @@ impl Clock<Timer> {
pub fn tick(&mut self) {
if self.mode == Mode::Tick {
self.current_value.saturating_add(self.tick_value);
self.current_value = self.current_value.saturating_add(self.tick_value);
self.set_done();
self.update_format();
}