diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 18:43:48 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 18:43:48 -0600 |
| commit | ba629f1892ff99e40f8c3419e3ae1eaf7ed4c71d (patch) | |
| tree | e7c6a8bbd73fda7f6877616ceef94ec941788a3e /debug.go | |
| parent | bff0943dc51dde0545b9e1a1515df06c44017d70 (diff) | |
things resized
Diffstat (limited to 'debug.go')
| -rw-r--r-- | debug.go | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -5,7 +5,6 @@ package main import ( "fmt" - "strings" "github.com/awesome-gocui/gocui" "go.wit.com/log" @@ -83,16 +82,9 @@ func (tk *guiWidget) dumpWidget(s string) { } var end string if tk.node.WidgetType == widget.Box { - end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String()) + end = fmt.Sprintf("%-8s %-8s %s %s", tk.node.WidgetType, tk.cuiName, tk.node.State.Direction.String(), tk.String()) } else { - curval := strings.TrimSpace(tk.node.ProgName()) - if curval == "" { - curval = strings.TrimSpace(tk.node.GetLabel()) - } - if curval == "" { - curval = strings.TrimSpace(tk.labelN) - } - end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, curval) + end = fmt.Sprintf("%-8s %-8s %s", tk.node.WidgetType, tk.cuiName, tk.String()) } log.Log(GOCUI, s1, s, end) } |
