diff options
| author | Jeff Carr <[email protected]> | 2025-03-10 04:37:21 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-10 04:37:21 -0500 |
| commit | cb3047ab097a86236248cd2cd39e25164b39b780 (patch) | |
| tree | 325ec75f6d4144c671abef4f770ca2d7ba8fb956 /add.go | |
| parent | bdb93a7b57dd524ba5e8848ef88649bb16985f79 (diff) | |
quiet output related to expected init() conditionsv0.22.38v0.22.37v0.22.36v0.22.35v0.22.34v0.22.33v0.22.32v0.22.31v0.22.30v0.22.29
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) |
