summaryrefslogtreecommitdiff
path: root/box.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 13:53:15 -0600
committerJeff Carr <[email protected]>2024-01-06 13:53:15 -0600
commitb3dfc689abe6699112518ddaf5e12aa87ef931f8 (patch)
tree2f5e14ac484ac45e52e58a57dd95f904a0d38094 /box.go
parentd075b29aff66e784a615a0a3e436ae7433556789 (diff)
sierpinski carpet mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'box.go')
-rw-r--r--box.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/box.go b/box.go
index 9c8bda4..0dbc674 100644
--- a/box.go
+++ b/box.go
@@ -8,7 +8,9 @@ func (parent *Node) NewBox(name string, b bool) *Node {
newNode := parent.newNode(name, widget.Box)
newNode.B = b
- a := newAction(newNode, widget.Add)
- sendAction(a)
+ if ! newNode.hidden {
+ a := newAction(newNode, widget.Add)
+ sendAction(a)
+ }
return newNode
}