summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 17:08:42 -0600
committerJeff Carr <[email protected]>2024-01-19 17:08:42 -0600
commit7012aff2aebdc74d950d921262e0ddfa677761e4 (patch)
tree2fdeed32f222affbdd99f83f6f37ed793fa5cce9 /common.go
parent4ef833479cb887b455da7a9d0617a59250cf67f3 (diff)
hidden settings seem to work
Signed-off-by: Jeff Carr <[email protected]>
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)
}