autogenpb improvements

This commit is contained in:
Jeff Carr 2024-11-30 15:07:27 -06:00
parent b00584213d
commit fb792e13a7
2 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,7 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
me.viewName = "autotypist" me.viewName = "autotypist"
repos := me.forge.Repos.SortByPath() repos := me.forge.Repos.SortByGoPath()
for repos.Scan() { for repos.Scan() {
repo := repos.Next() repo := repos.Next()
if me.forge.IsReadOnly(repo.GoPath) { if me.forge.IsReadOnly(repo.GoPath) {
@ -47,7 +47,7 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
me.viewName = "autotypist" me.viewName = "autotypist"
repos := me.forge.Repos.SortByPath() repos := me.forge.Repos.SortByGoPath()
for repos.Scan() { for repos.Scan() {
repo := repos.Next() repo := repos.Next()
if me.forge.IsReadOnly(repo.GoPath) { if me.forge.IsReadOnly(repo.GoPath) {

View File

@ -36,7 +36,7 @@ func (r *RepoList) ScanRepositories() (int, string) {
me.shownCount.SetText(tmp) me.shownCount.SetText(tmp)
me.duration.SetText(s) 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 return i, s
} }
@ -73,6 +73,8 @@ func (r *RepoRow) NewScan() int {
if r.Status.GitState() == "PERFECT" { if r.Status.GitState() == "PERFECT" {
r.Hide() r.Hide()
} else {
r.Show()
} }
/* /*