summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index bc1fed8..37d9f9b 100644
--- a/plugin.go
+++ b/plugin.go
@@ -174,7 +174,11 @@ func (w *guiWidget) Set(val any) {
log.Log(INFO, "Set() value =", val)
w.value = val.(string)
- if w.node.WidgetType != widget.Checkbox {
- w.setCheckbox(val)
+ if w.node.WidgetType == widget.Checkbox {
+ w.node.State.Checked = widget.GetBool(val)
+ w.setCheckbox()
+ }
+ if w.node.WidgetType == widget.Label {
+ w.labelN = widget.GetString(val)
}
}