hack to identify protobuf tables
This commit is contained in:
parent
308543c02c
commit
1127b96570
6
table.go
6
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue