From ba629f1892ff99e40f8c3419e3ae1eaf7ed4c71d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 8 Feb 2025 18:43:48 -0600 Subject: things resized --- debug.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'debug.go') diff --git a/debug.go b/debug.go index c4a0bfb..dbcccc3 100644 --- a/debug.go +++ b/debug.go @@ -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) } -- cgit v1.2.3