summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'common.go')
-rw-r--r--common.go21
1 files changed, 19 insertions, 2 deletions
diff --git a/common.go b/common.go
index 2374b33..6c5c1c2 100644
--- a/common.go
+++ b/common.go
@@ -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 {