diff --git a/new.go b/new.go index a0e31a3..3864178 100644 --- a/new.go +++ b/new.go @@ -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