summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-01 09:41:16 -0600
committerJeff Carr <[email protected]>2024-02-01 09:41:16 -0600
commit99bb171bd9298fe109c3af649be76a3b73c54b9e (patch)
tree8b6dfbe398d0966bcbe3a4701f03f7ae88c71d6e /plugin.go
parent3f2f3de751ed9863ab798853b2a09db6b745a1b0 (diff)
dns control panel work, doesn't update labels
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugin.go b/plugin.go
index 204b77a..a1c6a08 100644
--- a/plugin.go
+++ b/plugin.go
@@ -8,7 +8,7 @@ import (
)
func action(a widget.Action) {
- log.Log(NOW, "action() START", a.WidgetId, a.ActionType, a.WidgetType, a.ProgName)
+ log.Log(INFO, "action() START", a.WidgetId, a.ActionType, a.WidgetType, a.ProgName)
// n := me.rootNode.findWidgetId(a.WidgetId)
n := me.treeRoot.FindWidgetId(a.WidgetId)
var w *guiWidget
@@ -154,6 +154,10 @@ func (w *guiWidget) SetText(text string) {
}
func (w *guiWidget) Set(val any) {
+ if w == nil {
+ log.Log(WARN, "Set() w == nil. val =", val)
+ return
+ }
log.Log(INFO, "Set() value =", val)
w.value = val.(string)