hack to identify protobuf tables

This commit is contained in:
Jeff Carr 2025-03-25 09:32:04 -05:00
parent 308543c02c
commit 1127b96570
1 changed files with 5 additions and 1 deletions

View File

@ -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
}
}
}