summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
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)