From 517d844b3c8257dd796244e6a151deceabedab42 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Feb 2025 13:06:30 -0600 Subject: more work on the ever illusive floating stdout window --- debug.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debug.go') 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) -- cgit v1.2.3