summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/common.go b/common.go
index a544f51..a46ecb5 100644
--- a/common.go
+++ b/common.go
@@ -119,6 +119,17 @@ func (n *Node) String() string {
if !n.Ready() {
return ""
}
+ switch n.WidgetType {
+ case widget.Window:
+ return n.label
+ case widget.Button:
+ return n.label
+ case widget.Group:
+ return n.label
+ case widget.Label:
+ return n.label
+ default:
+ }
return widget.GetString(n.value)
}