summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-02 13:06:30 -0600
committerJeff Carr <[email protected]>2025-02-02 15:04:47 -0600
commit517d844b3c8257dd796244e6a151deceabedab42 (patch)
tree1ebd6b05f55b13a8b716860e4593087d8ed69228 /debug.go
parent4a8fb6ab224e4b4c126f72be77abb1affc85e362 (diff)
more work on the ever illusive floating stdout window
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.go b/debug.go
index 37d1c3c..2b740d4 100644
--- a/debug.go
+++ b/debug.go
@@ -55,6 +55,10 @@ func (w *guiWidget) dumpWidget(s string) {
if w.node.WidgetType == widget.Box {
end = fmt.Sprintf("%5s %-8s %s", w.cuiName, w.node.WidgetType, w.node.State.Direction.String())
} else {
+ curval := w.String()
+ if curval == "" {
+ curval = w.node.GetLabel()
+ }
end = fmt.Sprintf("%5s %-8s %s", w.cuiName, w.node.WidgetType, w.String())
}
log.Log(NOW, s1, s, end)