From d0bcdfa6c49d832b3a51448fdf0a433d8d30b030 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 10 Nov 2024 20:00:42 +0100 Subject: [PATCH] libmain/progress-bar: actually don't show short activities The progress bar is not supposed to show very short activities (<10ms) in order to prevent excessive flickering. This behaviour was inadvertedly disabled in commit da4e46dd1fc04067b5ba4bc16dd68134fa7efad2 due to not actually skipping the short activity after calculating that it should have been. Fix this oversight. Fixes: https://git.lix.systems/lix-project/lix/issues/561 Change-Id: Ibee256a7018cdc431662cd8ea9f6c14ef1706972 --- src/libmain/progress-bar.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libmain/progress-bar.cc b/src/libmain/progress-bar.cc index 68349ad26..4db7e1cbb 100644 --- a/src/libmain/progress-bar.cc +++ b/src/libmain/progress-bar.cc @@ -382,6 +382,7 @@ std::chrono::milliseconds ProgressBar::draw(State & state, const std::optionalstartTime) ) ); + continue; } activity_line = i->s;