diff options
Diffstat (limited to 'add.go')
| -rw-r--r-- | add.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -60,9 +60,13 @@ func newAdd(n *tree.Node) { } add(n) if n.TK == nil { - 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 + if n.WidgetId == 1 || n.WidgetId == 2 { + // this is normal at plugin init() time + } else { + // this probably shouldn't be happening + log.Log(WARN, "newAdd() Tree sent an action on a widget we didn't seem to have.", n.WidgetId, n.WidgetType, n.ProgName()) + } + // Probably something went wrong and we should reset / redraw everything? n.TK = initWidget(n) } // show(n, !a.State.Hidden) |
