changes in gitpb

This commit is contained in:
Jeff Carr 2024-12-17 06:36:45 -06:00
parent 54cdb3fbec
commit 93e9e4e43b
1 changed files with 3 additions and 3 deletions

6
new.go
View File

@ -39,7 +39,7 @@ func SetWorkPath(path string) {
// don't worry, you can think of it like Sierpinski carpet
// it's doesn't need to be displayed so it'll work fine even in an embedded space
func NewRepoStatusWindow(repo *gitpb.Repo) (*RepoStatus, error) {
path := repo.GoPath
path := repo.GetGoPath()
if windowMap[path] == nil {
log.Log(INFO, "NewRepoStatusWindow() adding new", path)
} else {
@ -103,11 +103,11 @@ func NewRepoStatusWindow(repo *gitpb.Repo) (*RepoStatus, error) {
rs.userWorkingName.SetText(rs.pb.GetUserBranchName())
rs.userBranchVersion.SetLabel(rs.pb.GetUserBranchName())
if rs.pb.GoPath == "" {
if rs.pb.GetGoPath ()== "" {
// not golang repo
} else {
rs.isGoLang.SetText("true")
rs.goPath.SetText(rs.pb.GoPath)
rs.goPath.SetText(rs.pb.GetGoPath())
}
windowMap[path] = rs
return rs, nil