diff options
| author | Jeff Carr <[email protected]> | 2019-06-01 15:42:15 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-01 15:42:15 -0700 |
| commit | e924dec0335a034b0269c1b5edf8b701ba5634f1 (patch) | |
| tree | 3f0f70fea007eb580a5f1f785a020a0ab978cce5 /tableCallbacks.go | |
| parent | 9ed0fb858f579144f49fa7c153995727d8354f4c (diff) | |
| parent | 9db539747b33632e758083b6b72e5249f3edeb1e (diff) | |
Merge branch 'devel'
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index e63c5b3..f71cabc 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -14,6 +14,8 @@ import "runtime" import "github.com/andlabs/ui" import _ "github.com/andlabs/ui/winmanifest" +// THIS IS CLEAN + func (mh *TableData) NumRows(m *ui.TableModel) int { if (Data.Debug) { log.Println("NumRows = mh.RowCount = ", mh.RowCount, "(last Row & Column =", mh.lastRow, mh.lastColumn, ")") @@ -108,7 +110,9 @@ func defaultSetCellValue(mh *TableData, row int, column int) { button := mh.Rows[row].HumanData[humanID].Button if (button != nil) { - mouseClick(button) + if (Data.MouseClick != nil) { + Data.MouseClick(button) + } return } if (Data.Debug) { |
