diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 15:01:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 15:01:36 -0600 |
| commit | 42eafb87c729da4ad980c79c9e344db79def9186 (patch) | |
| tree | 45435c7a054cd6207ca03918853fe9b91b3d5633 /debug.go | |
| parent | ea544e429e1afbb60e91d2cba6caf85d8e08cc64 (diff) | |
dropdown works again
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) } |
