summaryrefslogtreecommitdiff
path: root/node.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 17:08:42 -0600
committerJeff Carr <[email protected]>2024-01-19 17:08:42 -0600
commit7012aff2aebdc74d950d921262e0ddfa677761e4 (patch)
tree2fdeed32f222affbdd99f83f6f37ed793fa5cce9 /node.go
parent4ef833479cb887b455da7a9d0617a59250cf67f3 (diff)
hidden settings seem to work
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'node.go')
-rw-r--r--node.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/node.go b/node.go
index 59eb967..a66ac93 100644
--- a/node.go
+++ b/node.go
@@ -14,6 +14,10 @@ and it initializes basic default values
there isn't much to see here.
*/
func (n *Node) newNode(title string, t widget.WidgetType) *Node {
+ if n == nil {
+ log.Warn("newNode got parent == nil")
+ log.Exit(0)
+ }
var newN *Node
newN = addNode()