aboutsummaryrefslogtreecommitdiff
path: root/go/ui/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/button.go')
-rw-r--r--go/ui/button.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/go/ui/button.go b/go/ui/button.go
index 50f78a3d..e882d39c 100644
--- a/go/ui/button.go
+++ b/go/ui/button.go
@@ -46,6 +46,8 @@ func (b *SimpleButton) Click(x, y int) {
}
func (b *SimpleButton) UpdateLabel(label string) {
- b.label = label
- b.ForceRedraw()
+ if b.label != label {
+ b.label = label
+ b.ForceRedraw()
+ }
}