Skip to content

Commit

Permalink
remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed Dec 29, 2023
1 parent 231ac64 commit e283aca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions widget/radio_group.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package widget

import (
"log"

"fyne.io/fyne/v2"
"fyne.io/fyne/v2/canvas"
"fyne.io/fyne/v2/internal/widget"
Expand Down Expand Up @@ -93,12 +91,10 @@ func (r *RadioGroup) itemTapped(item *radioItem, idx int) {
if r.Required {
return
}
log.Printf("trying to unselect item %d", idx)
r.Selected = ""
r.setSelectedIndex(-1)
item.SetSelected(false)
} else {
log.Printf("trying to select item %d", idx)
r.Selected = item.Label
r.setSelectedIndex(idx)
item.SetSelected(true)
Expand Down

0 comments on commit e283aca

Please sign in to comment.