Skip to content

Commit

Permalink
Use injected icon for app icon by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Mar 6, 2022
1 parent 3d5912b commit a1112e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/app.go
Expand Up @@ -35,7 +35,11 @@ type fyneApp struct {
}

func (a *fyneApp) Icon() fyne.Resource {
return a.icon
if a.icon != nil {
return a.icon
}

return a.Metadata().Icon
}

func (a *fyneApp) SetIcon(icon fyne.Resource) {
Expand Down

0 comments on commit a1112e3

Please sign in to comment.