diff options
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) } |
