Skip to content
Discussion options

You must be logged in to vote

This is due to the change in thread handling when you upgrade to v2.6.0 (or beyond): https://docs.fyne.io/api/v2.6/upgrading.html

Your button was previously running in a goroutine but is now running on the event thread. So blocking it with time.Sleep is blocking updates. Do this instead:

func Blink(b *widget.Button) {
    b.Disable()
    go func() {
        time.Sleep(150 * time.Millisecond)
        fyne.Do(b.Enable)
    }()
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TonyFrosdick
Comment options

Answer selected by dweymouth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants