Skip to content

Commit

Permalink
Appending options to a disabled widget.RadioGroup shows them as enabled
Browse files Browse the repository at this point in the history
fyne-io#1697

In updateItems function added set of item.DisableableWidget.disable based on whole RadioGroup Disable
  • Loading branch information
jasinskp committed Jan 8, 2021
1 parent 4564e78 commit e8a2285
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/radio_group.go
Expand Up @@ -205,6 +205,7 @@ func (r *radioGroupRenderer) updateItems() {
for i, item := range r.items {
item.Label = r.radio.Options[i]
item.Selected = item.Label == r.radio.Selected
item.DisableableWidget.disabled = r.radio.disabled
item.Refresh()
}
}

0 comments on commit e8a2285

Please sign in to comment.