Skip to content

Commit

Permalink
fix flickering of progress bar on package installation (#3993)
Browse files Browse the repository at this point in the history
(cherry picked from commit a717900)
  • Loading branch information
KristofferC authored and KristofferC committed Sep 12, 2024
1 parent ffe6868 commit 1fc840e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniProgressBars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function show_progress(io::IO, p::MiniProgressBar; termwidth=nothing, carriagere
return
end
t = time()
if p.has_shown && (t - p.time_shown) < PROGRESS_BAR_TIME_GRANULARITY[]
if !p.always_reprint && p.has_shown && (t - p.time_shown) < PROGRESS_BAR_TIME_GRANULARITY[]
return
end
p.time_shown = t
Expand Down

0 comments on commit 1fc840e

Please sign in to comment.