diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 19:00:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 19:00:00 -0600 |
| commit | 2a5734892a85804b6c44a0cd8dd22d20fed21d96 (patch) | |
| tree | 55e4164094dd468a8ef1812ed1cae5e7a605fc01 /plugin.go | |
| parent | f5d465901d2ec48e145c3c7ce04eceb69445a11f (diff) | |
trying to fix Hidden() to use the parent
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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: |
