diff options
Diffstat (limited to 'viewTempWindow.go')
| -rw-r--r-- | viewTempWindow.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/viewTempWindow.go b/viewTempWindow.go index bd27506..402393c 100644 --- a/viewTempWindow.go +++ b/viewTempWindow.go @@ -32,6 +32,13 @@ func TempWindowView(parent *gui.Node) *RepoList { return tmp } +func (r *RepoList) ListRows() { + for i, row := range r.rows { + log.Warn("i, row:", i, row.Status.Name(), "curname", row.Status.GetCurrentBranchName()) + row.currentName.SetLabel(row.Status.GetCurrentBranchName()) + } +} + func (r *RepoList) ShowRepo(repo *RepoRow) error { // this is the gui grid. all the widgets get added here // at the end we tell the grid go to NextRow() @@ -84,5 +91,6 @@ func (r *RepoList) ShowRepo(repo *RepoRow) error { newRow.hidden = false r.reposgrid.NextRow() + r.rows = append(r.rows, newRow) return nil } |
