From e5158c4ade120977fa9a5cfe576d6ecc94fbd2d4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 21:21:13 -0700 Subject: displays all the VM data Signed-off-by: Jeff Carr --- tableCallbacks.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tableCallbacks.go') diff --git a/tableCallbacks.go b/tableCallbacks.go index 7c05d0e..6e6d14c 100644 --- a/tableCallbacks.go +++ b/tableCallbacks.go @@ -24,6 +24,10 @@ func (mh *TableData) ColumnTypes(m *ui.TableModel) []ui.TableValue { // TODO: Figure out why this is being called 1000 times a second (10 times for each row & column) // Nevermind this TODO. Who gives a shit. This is a really smart way to treat the OS toolkits func (mh *TableData) CellValue(m *ui.TableModel, row, column int) ui.TableValue { + humanID := mh.Rows[row].Cells[column].HumanID + if (column == mh.Rows[row].Human[humanID].TextID) { + return mh.Rows[row].Human[humanID].Text + } return mh.Rows[row].Cells[column].Value } -- cgit v1.2.3