summaryrefslogtreecommitdiff
path: root/image.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 /image.go
parentd075b29aff66e784a615a0a3e436ae7433556789 (diff)
sierpinski carpet mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'image.go')
-rw-r--r--image.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/image.go b/image.go
index 8963e54..bd6b972 100644
--- a/image.go
+++ b/image.go
@@ -8,7 +8,9 @@ func (parent *Node) NewImage(name string) *Node {
var newNode *Node
newNode = parent.newNode(name, widget.Image)
- a := newAction(newNode, widget.Add)
- sendAction(a)
+ if ! newNode.hidden {
+ a := newAction(newNode, widget.Add)
+ sendAction(a)
+ }
return newNode
}