fix: tick timer
This commit is contained in:
parent
0673b8e1dd
commit
49365d3db4
@ -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)?;
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user