summaryrefslogtreecommitdiff
path: root/newRepo.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 21:03:23 -0600
committerJeff Carr <[email protected]>2024-11-28 21:03:23 -0600
commit8893af7740e7fa27fc5040242a4f805ea6aa163d (patch)
treea3526dda78b87374441984618da1261e717ba209 /newRepo.go
parent931e345895e99e9cb058029763e12562cc6d5fba (diff)
testGui example seems to work
Diffstat (limited to 'newRepo.go')
-rw-r--r--newRepo.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/newRepo.go b/newRepo.go
index 56002fc..f670edc 100644
--- a/newRepo.go
+++ b/newRepo.go
@@ -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 {