From 61addc051bf5aee5758610031f1825d7945486aa Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 11 Aug 2024 12:20:12 -0400 Subject: [PATCH] Button sets an icon tag --- button.go | 1 + 1 file changed, 1 insertion(+) diff --git a/button.go b/button.go index e9b02b7..2aec8c0 100644 --- a/button.go +++ b/button.go @@ -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() }