summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-28 03:33:08 -0600
committerJeff Carr <[email protected]>2024-01-28 03:33:08 -0600
commite678a5cc626c9cfdcb2f593b49598732052495cd (patch)
tree56361aa3408154f325a4f21f5e1f21b15f361251 /plugin.go
parent1f3d664dbdee1b567f5b40e06c63c07c4667d5f4 (diff)
fake buttons have labels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index 7bf6757..0e55102 100644
--- a/plugin.go
+++ b/plugin.go
@@ -99,8 +99,8 @@ func (w *guiWidget) SetText(text string) {
log.Log(NOW, "widget is nil")
return
}
- if widget.GetString(w.value) != text {
- w.value = text
+ if w.labelN != text {
+ w.labelN = text
changed = true
}
if !changed {