From e3e34a49ce4c3a46275e4a99880291dffe981c34 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 May 2019 18:25:08 -0700 Subject: [PATCH] more debugging Signed-off-by: Jeff Carr --- tableCallbacks.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tableCallbacks.go b/tableCallbacks.go index a5d8efa..1577cf6 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -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 }