summaryrefslogtreecommitdiff
path: root/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-05 03:43:38 -0600
committerJeff Carr <[email protected]>2025-03-05 03:43:38 -0600
commitbdb93a7b57dd524ba5e8848ef88649bb16985f79 (patch)
tree0048242e1c6ded623c8a3add899fc09dbf6e3b2f /add.go
parent8a71fc401263d718aab728508172cf056864fc78 (diff)
andlabs is unstable. need to switch to protobufv0.22.28v0.22.27
Diffstat (limited to 'add.go')
-rw-r--r--add.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/add.go b/add.go
index 0544f0f..24d7149 100644
--- a/add.go
+++ b/add.go
@@ -55,9 +55,12 @@ func newAdd(n *tree.Node) {
me.treeRoot = n
return
}
+ if me.treeRoot == nil {
+ panic("test")
+ }
add(n)
if n.TK == nil {
- log.Log(WARN, "Tree sent an action on a widget we didn't seem to have.")
+ log.Log(WARN, "newAdd() Tree sent an action on a widget we didn't seem to have.", n.WidgetId)
// do this init here again? Probably something
// went wrong and we should reset the our while gocui.View tree
n.TK = initWidget(n)