Skip to content

Commit

Permalink
GH-2306: sync Icon property
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikhauk committed Jan 16, 2024
1 parent b9a104a commit 636deb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widget/toolbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type ToolbarAction struct {

// ToolbarObject gets a button to render this ToolbarAction
func (t *ToolbarAction) ToolbarObject() fyne.CanvasObject {
t.button.Icon = t.Icon
t.button.OnTapped = t.OnActivated
return t.button
}
Expand Down

0 comments on commit 636deb5

Please sign in to comment.