diff options
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) } } |
