diff options
| author | Jeff Carr <[email protected]> | 2019-05-24 01:17:14 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-05-24 01:17:14 -0700 |
| commit | 9949a02b3e0d953824568fc5085009243c92cc86 (patch) | |
| tree | f6ad7f89dd76ce587352d2adb29b3b878a2b21ee /tableCallbacks.go | |
| parent | ec46388402608d833744fc8ded36bc54792ba077 (diff) | |
start adding a VM page
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'tableCallbacks.go')
| -rw-r--r-- | tableCallbacks.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tableCallbacks.go b/tableCallbacks.go index ea78d44..28ddd8b 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -59,7 +59,9 @@ func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue return nil } bgcolor := libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color) - log.Println("CellValue() BGCOLOR =", bgcolor) + if (Data.Debug) { + log.Println("CellValue() BGCOLOR =", bgcolor) + } return bgcolor } return libuiColorToGOlangColor(mh.Rows[row].HumanData[humanID].Color) @@ -98,6 +100,10 @@ func defaultSetCellValue(mh *TableData, row int, column int) { log.Println("defaultSetCellValue() FOUND THE BUTTON!!!!!!! Button was pressed START", row, column) Data.CurrentVM = fmt.Sprintf("%s",vmname) log.Println("Data.CurrentVM =", Data.CurrentVM) - go ui.Main(ShowVM) + if (Data.Debug) { + go ui.Main(ShowVM) + } else { + AddVmConfigureTab(vmname) + } } } |
