summaryrefslogtreecommitdiff
path: root/slider.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 /slider.go
parentd075b29aff66e784a615a0a3e436ae7433556789 (diff)
sierpinski carpet mode
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'slider.go')
-rw-r--r--slider.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/slider.go b/slider.go
index 6638cd3..fd2b207 100644
--- a/slider.go
+++ b/slider.go
@@ -14,10 +14,12 @@ func (parent *Node) NewSlider(name string, x int, y int) *Node {
newNode.X = x
newNode.Y = y
- a := newAction(newNode, widget.Add)
- a.X = x
- a.Y = y
- sendAction(a)
+ if ! newNode.hidden {
+ a := newAction(newNode, widget.Add)
+ a.X = x
+ a.Y = y
+ sendAction(a)
+ }
return newNode
}