From fb792e13a7acdeafcacb2d37139bf5653b16921a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 30 Nov 2024 15:07:27 -0600 Subject: [PATCH] autogenpb improvements --- init.go | 4 ++-- scan.go | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/init.go b/init.go index f1cc9fa..9a22624 100644 --- a/init.go +++ b/init.go @@ -21,7 +21,7 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList { me.viewName = "autotypist" - repos := me.forge.Repos.SortByPath() + repos := me.forge.Repos.SortByGoPath() for repos.Scan() { repo := repos.Next() if me.forge.IsReadOnly(repo.GoPath) { @@ -47,7 +47,7 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList { me.viewName = "autotypist" - repos := me.forge.Repos.SortByPath() + repos := me.forge.Repos.SortByGoPath() for repos.Scan() { repo := repos.Next() if me.forge.IsReadOnly(repo.GoPath) { diff --git a/scan.go b/scan.go index 8c0afd5..8c37f36 100644 --- a/scan.go +++ b/scan.go @@ -36,7 +36,7 @@ func (r *RepoList) ScanRepositories() (int, string) { me.shownCount.SetText(tmp) me.duration.SetText(s) - log.Info("Scanned", i, "repositories.", total, "changes in", s) + log.Info("repolist Scanned", i, "repositories.", total, "changes in", s) return i, s } @@ -73,6 +73,8 @@ func (r *RepoRow) NewScan() int { if r.Status.GitState() == "PERFECT" { r.Hide() + } else { + r.Show() } /*