diff options
| author | Jeff Carr <[email protected]> | 2024-02-01 09:41:16 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-01 09:41:16 -0600 |
| commit | 99bb171bd9298fe109c3af649be76a3b73c54b9e (patch) | |
| tree | 8b6dfbe398d0966bcbe3a4701f03f7ae88c71d6e /plugin.go | |
| parent | 3f2f3de751ed9863ab798853b2a09db6b745a1b0 (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.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |
