diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -2,6 +2,7 @@ package repolist import ( "go.wit.com/lib/gui/repostatus" + "go.wit.com/log" ) func (r *RepoList) Hidden() bool { @@ -88,11 +89,27 @@ func (r *Repo) LastTag() string { // because this are changing too often at this point // TODO: revisit this in 2025 or 2026 func (r *Repo) GoState() string { - return r.Status.GetGoSumStatus() + if r == nil { + log.Info("GoState() r == nil") + return "goState == nil" + } + if r.goState == nil { + log.Info("GoState() r.goState == nil") + return "goState == nil" + } + return r.goState.String() } func (r *Repo) SetGoState(s string) { - r.Status.SetGoSumStatus(s) + if r == nil { + log.Info("SetGoState() r == nil") + return + } + if r.goState == nil { + log.Info("goState == nil") + return + } + r.goState.SetText(s) } func (r *Repo) IsPerfect() bool { |
