summaryrefslogtreecommitdiff
path: root/textbox.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 /textbox.go
parentd075b29aff66e784a615a0a3e436ae7433556789 (diff)
sierpinski carpet mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'textbox.go')
-rw-r--r--textbox.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/textbox.go b/textbox.go
index fec0c2e..16837c0 100644
--- a/textbox.go
+++ b/textbox.go
@@ -13,8 +13,10 @@ func (parent *Node) NewTextbox(name string) *Node {
log.Log(GUI, "NewTextbox changed =", name)
}
- a := newAction(newNode, widget.Add)
- sendAction(a)
+ if ! newNode.hidden {
+ a := newAction(newNode, widget.Add)
+ sendAction(a)
+ }
return newNode
}
@@ -27,7 +29,9 @@ func (parent *Node) NewEntryLine(name string) *Node {
log.Log(GUI, "NewTextbox changed =", name)
}
- a := newAction(newNode, widget.Add)
- sendAction(a)
+ if ! newNode.hidden {
+ a := newAction(newNode, widget.Add)
+ sendAction(a)
+ }
return newNode
}