From 5c4281808076fd106cc94f2ee5333f9b066b176f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Tue, 15 Aug 2023 21:06:47 +0200 Subject: [PATCH] Tick ProgressTrackers before drawing --- src/state.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index f0e34682..3bcdc445 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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) {