diff options
| author | Jeff Carr <[email protected]> | 2025-03-25 09:32:04 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-25 13:17:00 -0500 |
| commit | 1127b96570a31ae83ec22b38b46e4754703f1fc6 (patch) | |
| tree | 74a51f4989fa6f7f83c7b615190a2a417387d52b /table.go | |
| parent | 308543c02c1e39ac6b9dd45ae31ab9aa596853e8 (diff) | |
hack to identify protobuf tablesv0.22.29
Diffstat (limited to 'table.go')
| -rw-r--r-- | table.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 + } } } |
