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 | |
| 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
| -rw-r--r-- | add.go | 10 | ||||
| -rw-r--r-- | window.go | 2 |
2 files changed, 8 insertions, 4 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) @@ -26,7 +26,7 @@ func newWindow(p, n *tree.Node) { win.SetBorderless(n.State.Borderless) win.SetMargined(n.State.Pad) win.OnClosing(func(*ui.Window) bool { - // show(n, false) + newt.uiWindow = nil // delete the local reference to the window me.myTree.SendWindowCloseEvent(n) // n.DeleteNode() return true |
