Skip to content

Commit

Permalink
Tick ProgressTrackers before drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and chris-laplante committed Aug 25, 2023
1 parent 75fca29 commit a5a8524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ impl BarState {
pub(crate) fn update_estimate_and_draw(&mut self, now: Instant) {
let pos = self.state.pos.pos.load(Ordering::Relaxed);
self.state.est.record(pos, now);
let _ = self.draw(false, now);

for tracker in self.style.format_map.values_mut() {
tracker.tick(&self.state, now);
}

let _ = self.draw(false, now);
}

pub(crate) fn println(&mut self, now: Instant, msg: &str) {
Expand Down

0 comments on commit a5a8524

Please sign in to comment.