summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 15:01:36 -0600
committerJeff Carr <[email protected]>2025-02-08 15:01:36 -0600
commit42eafb87c729da4ad980c79c9e344db79def9186 (patch)
tree45435c7a054cd6207ca03918853fe9b91b3d5633 /debug.go
parentea544e429e1afbb60e91d2cba6caf85d8e08cc64 (diff)
dropdown works again
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/debug.go b/debug.go
index 7aeaa33..c4a0bfb 100644
--- a/debug.go
+++ b/debug.go
@@ -85,14 +85,12 @@ func (tk *guiWidget) dumpWidget(s string) {
if tk.node.WidgetType == widget.Box {
end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String())
} else {
- curval := tk.String()
+ curval := strings.TrimSpace(tk.node.ProgName())
if curval == "" {
- curval = tk.node.GetLabel()
- curval = strings.TrimSpace(curval)
+ curval = strings.TrimSpace(tk.node.GetLabel())
}
if curval == "" {
- curval = tk.labelN
- curval = strings.TrimSpace(curval)
+ curval = strings.TrimSpace(tk.labelN)
}
end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, curval)
}