more debugging

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-21 18:25:08 -07:00
parent 0826a04593
commit e3e34a49ce
1 changed files with 8 additions and 0 deletions

View File

@ -13,14 +13,22 @@ import "image/color"
import "github.com/andlabs/ui"
import _ "github.com/andlabs/ui/winmanifest"
import "github.com/gookit/config"
var CurrentVM string
func (mh *TableData) NumRows(m *ui.TableModel) int {
if (config.String("debugging") == "true") {
log.Println("NumRows = mh.RowCount = ", mh.RowCount)
}
return mh.RowCount
}
// FYI: this routine seems to be called around 10 to 100 times a second for each table
func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue {
if (config.String("debugging") == "true") {
log.Println("ColumnTypes = ", mh.generatedColumnTypes)
}
return mh.generatedColumnTypes
}