diff options
| author | Jeff Carr <[email protected]> | 2024-11-28 21:03:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-28 21:03:23 -0600 |
| commit | 8893af7740e7fa27fc5040242a4f805ea6aa163d (patch) | |
| tree | a3526dda78b87374441984618da1261e717ba209 /newRepo.go | |
| parent | 931e345895e99e9cb058029763e12562cc6d5fba (diff) | |
testGui example seems to work
Diffstat (limited to 'newRepo.go')
| -rw-r--r-- | newRepo.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -98,25 +98,26 @@ func (r *RepoList) NewRepo(path string) (*RepoRow, error) { */ // adds a gui row to the table based off the repo protobuf -func (r *RepoList) AddRepo(repo *gitpb.Repo) (*RepoRow, error) { - test, ok := r.allrepos[repo.GetGoPath()] +func (r *RepoList) AddRepo(pb *gitpb.Repo) (*RepoRow, error) { + test, ok := r.allrepos[pb.GetGoPath()] if ok { // this repo already exists return test, nil } - status, err := repostatus.NewRepoStatusWindow(repo) + status, err := repostatus.NewRepoStatusWindow(pb) if err != nil { return nil, err } newRepo := new(RepoRow) newRepo.Status = status + newRepo.pb = pb newRepo.Status.InitOk = false - newRepo.pLabel = r.reposgrid.NewLabel(repo.GoPath).SetProgName("path") + newRepo.pLabel = r.reposgrid.NewLabel(pb.GoPath).SetProgName("path") newRepo.hidden = false - r.allrepos[repo.GoPath] = newRepo + r.allrepos[pb.GoPath] = newRepo newRepo.NewScan() switch r.viewName { |
