Skip to content

Commit

Permalink
fix:according to renderProgressBar, only update spinner when ignore…
Browse files Browse the repository at this point in the history
… length.
  • Loading branch information
chengxilo committed Sep 22, 2024
1 parent fbe274c commit efe17f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions progressbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ func NewOptions64(max int64, options ...Option) *ProgressBar {
if b.config.invisible {
return
}
if !b.config.ignoreLength {
return
}
ticker := time.NewTicker(b.config.spinnerChangeInterval)
defer ticker.Stop()
for {
Expand Down

0 comments on commit efe17f0

Please sign in to comment.