summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-25 09:32:04 -0500
committerJeff Carr <[email protected]>2025-03-25 13:17:00 -0500
commit1127b96570a31ae83ec22b38b46e4754703f1fc6 (patch)
tree74a51f4989fa6f7f83c7b615190a2a417387d52b
parent308543c02c1e39ac6b9dd45ae31ab9aa596853e8 (diff)
hack to identify protobuf tablesv0.22.29
-rw-r--r--table.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/table.go b/table.go
index 7e1ad4f..7fc5322 100644
--- a/table.go
+++ b/table.go
@@ -200,6 +200,7 @@ func (me *TreeInfo) makeTable(t *guipb.Table) {
return
}
me.Add(grid)
+ grid.State.ProgName = "TableGridPB"
// log.Info("tree: makeTable() finished add win & grid")
var h int = 0
var w int = 0
@@ -313,7 +314,10 @@ func (n *Node) InTable() bool {
grid := FindWidgetById(int(n.ParentId))
if grid != nil {
if grid.WidgetType == widget.Grid {
- return true
+ if grid.State.ProgName == "TableGridPB" {
+ // this is a protobuf table
+ return true
+ }
}
}