summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-07 04:10:19 -0600
committerJeff Carr <[email protected]>2025-02-07 04:10:19 -0600
commite2d7511045a670d04514c5feb3638a1ca49de661 (patch)
treebb70806556a2e8333ec091453daae401c25412ad /common.go
parent13ebd2af477a5e1f55542d31363d05ac7060d800 (diff)
recursive parent Hidden() check breaks everything
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 3a8874a..f087d7f 100644
--- a/common.go
+++ b/common.go
@@ -53,6 +53,17 @@ func (n *Node) ProgName() string {
}
func (n *Node) Hidden() bool {
+ /*
+ if n.Parent == nil {
+ return n.Hidden()
+ }
+ if n.Parent.WidgetId == 0 {
+ return n.Hidden()
+ }
+ if n.Parent.Hidden() {
+ return true
+ }
+ */
return n.State.Hidden
}