summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 19:00:00 -0600
committerJeff Carr <[email protected]>2025-02-06 19:00:00 -0600
commit2a5734892a85804b6c44a0cd8dd22d20fed21d96 (patch)
tree55e4164094dd468a8ef1812ed1cae5e7a605fc01 /plugin.go
parentf5d465901d2ec48e145c3c7ce04eceb69445a11f (diff)
trying to fix Hidden() to use the parent
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugin.go b/plugin.go
index 8509bba..90c84fe 100644
--- a/plugin.go
+++ b/plugin.go
@@ -95,7 +95,13 @@ func newaction(n *tree.Node, atype widget.ActionType) {
case widget.Show:
w.Show()
case widget.Hide:
- w.Hide()
+ if n.Hidden() {
+ // already hidden
+ } else {
+ log.Log(NOW, "attempt to hide() =", atype, n.WidgetId, n.WidgetType, n.ProgName())
+ w.node.State.Hidden = true
+ w.Hide()
+ }
case widget.Move:
log.Log(NOW, "attempt to move() =", atype, n.WidgetType, n.ProgName())
case widget.ToolkitClose: