vbauerster / mpb

multi progress bar for Go cli applications
The Unlicense
2.29k stars 123 forks source link

Cannot complete automatically after use bar.SetTotal. #97

Closed Leavrth closed 3 years ago

Leavrth commented 3 years ago

It seems that this bar cannot trigger complete by Increment() function, after run bar.SetTotal(total, false).

Why not let it runs as before instead of forceRefreshIfLastUncompleted, when current < total after do bar.SetTotal(total, true).

vbauerster commented 3 years ago

It's by design. If bar.SetTotal(total, false) has been called, triggering complete is disabled until bar.SetTotal(total, true) is called.