From 0a23b33e633bed497a4c1136d41857ede47d8096 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 23 Feb 2025 12:36:06 -0600 Subject: fake hostname pb table update to gocui worked --- table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/table.go b/table.go index e98e8a0..387070f 100644 --- a/table.go +++ b/table.go @@ -73,14 +73,15 @@ func (parent *Node) ShowTable(pb *guipb.Table) { log.Info("unmarshal error", err) return } - log.Info("send action to plugin", "pb len =", len(a.TablePB)) + log.Info("NewStable() send action to plugin", "pb len =", len(a.TablePB)) sendActionToPlugin(a) } func (parent *Node) UpdateTable(pb *guipb.Table) { - log.Info("UpdateTable:", pb.Title) a := getNewAction(parent, widget.Show) + log.Info("gui.UpdateTable() TODO: move the widget update val logic here instead of tree") + nt := guipb.NewTables() nt.Append(pb) a.TablePB, err = nt.Marshal() @@ -88,7 +89,6 @@ func (parent *Node) UpdateTable(pb *guipb.Table) { log.Info("unmarshal error", err) return } - log.Info("send action to plugin", "pb len =", len(a.TablePB)) sendActionToPlugin(a) } -- cgit v1.2.3