Skip to content

Commit

Permalink
Fix incorrect progressbar infinite documentation (fyne-io#1760)
Browse files Browse the repository at this point in the history
* Fix incorrect progressbar infinite documentation

It was incorrectly referencing a value and max value while also commenting on internal API details.

* Add in a better comment, suggested by Stuart
  • Loading branch information
Jacalz committed Jan 10, 2021
1 parent e3036d0 commit 7e01210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widget/progressbarinfinite.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (p *infProgressRenderer) start() {
}
}

// Stop the infinite progress goroutine and sets value to the Max
// Stop the background thread from updating the infinite progress bar
func (p *infProgressRenderer) stop() {
p.progress.propertyLock.Lock()
defer p.progress.propertyLock.Unlock()
Expand Down Expand Up @@ -162,12 +162,12 @@ func (p *ProgressBarInfinite) Hide() {
p.BaseWidget.Hide()
}

// Start the infinite progress bar background thread to update it continuously
// Start the infinite progress bar animation
func (p *ProgressBarInfinite) Start() {
cache.Renderer(p).(*infProgressRenderer).start()
}

// Stop the infinite progress goroutine and sets value to the Max
// Stop the infinite progress bar animation
func (p *ProgressBarInfinite) Stop() {
cache.Renderer(p).(*infProgressRenderer).stop()
}
Expand Down

0 comments on commit 7e01210

Please sign in to comment.