Button sets an icon tag

This commit is contained in:
Sasha Koshka 2024-08-11 12:20:12 -04:00
parent 7e275cc70e
commit 61addc051b

View File

@ -69,6 +69,7 @@ func (this *Button) SetIcon (id tomo.Icon) {
if this.icon != nil {
this.Insert(this.icon, this.label)
}
this.SetTag("icon", this.icon != nil)
this.applyLayout()
}