diff options
| author | Jeff Carr <[email protected]> | 2025-03-05 03:43:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-05 03:43:38 -0600 |
| commit | bdb93a7b57dd524ba5e8848ef88649bb16985f79 (patch) | |
| tree | 0048242e1c6ded623c8a3add899fc09dbf6e3b2f /add.go | |
| parent | 8a71fc401263d718aab728508172cf056864fc78 (diff) | |
Diffstat (limited to 'add.go')
| -rw-r--r-- | add.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |
