From 2a5734892a85804b6c44a0cd8dd22d20fed21d96 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 19:00:00 -0600 Subject: trying to fix Hidden() to use the parent --- treeDraw.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'treeDraw.go') diff --git a/treeDraw.go b/treeDraw.go index 86eb673..39c8edc 100644 --- a/treeDraw.go +++ b/treeDraw.go @@ -141,8 +141,14 @@ func (w *guiWidget) Show() { // deprecate this // if this isn't in the binary tree // it's some internal widget so always display those - if w.node == nil { - w.drawView() + /* + if w.node == nil { + w.drawView() + return + } + */ + + if w.node.Hidden() { return } -- cgit v1.2.3