dns control panel work, doesn't update labels

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-01 09:41:16 -06:00
parent 3f2f3de751
commit 99bb171bd9
2 changed files with 9 additions and 2 deletions

View File

@ -71,10 +71,13 @@ func mainGogui() {
if r := recover(); r != nil {
log.Warn("YAHOOOO Recovered in guiMain application:", r)
log.Warn("Recovered from panic:", r)
me.baseGui.Close()
log.Sleep(1)
me.myTree.SendToolkitPanic()
log.Warn("Stack trace:")
debug.PrintStack()
// panic("BUMMER")
panic("BUMMER")
return
}
}()

View File

@ -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)