diff options
| author | Jeff Carr <[email protected]> | 2025-05-31 21:53:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-05-31 21:53:14 -0500 |
| commit | 391d47318befa791a2417b2eb7f5116048d46f66 (patch) | |
| tree | 598b20e1023d4ea0bd9972db3e3b9e61588a5528 /windowReposNew.go | |
| parent | 1282c17e8119a2debdfce0448b6c4b909b53f447 (diff) | |
fix "patchable" repos buttonv0.22.118
Diffstat (limited to 'windowReposNew.go')
| -rw-r--r-- | windowReposNew.go | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/windowReposNew.go b/windowReposNew.go index 994374c..68c2178 100644 --- a/windowReposNew.go +++ b/windowReposNew.go @@ -35,7 +35,7 @@ func (w *stdReposTableWin) Toggle() { } func makeWindowForPB() *gadgets.GenericWindow { - win := gadgets.NewGenericWindow("Forge Repos Raw Protobuf View", "Filter Git Repositories") + win := gadgets.NewGenericWindow("Forge Repos Protobuf View", "Display Git Repositories") return win } @@ -64,23 +64,17 @@ func makeReposWinNew() *gadgets.GenericWindow { log.Info("table has uuid", t.GetUuid()) }) - grid.NewButton("with patches", func() { + grid.NewButton("to publish", func() { if t != nil { t.Delete() t = nil } - found := new(gitpb.Repos) - all := me.forge.Repos.SortByFullPath() - for all.Scan() { - repo := all.Next() - if me.forge.Config.IsReadOnly(repo.GetGoPath()) { - continue - } - found.AppendByGoPath(repo) - } + me.found = new(gitpb.Repos) + findReposWithPatches() + me.forge.PrintHumanTable(me.found) // make the window for the first time - t = addWindowPB(insertWin, found) + t = addWindowPB(insertWin, me.found) f := func(repo *gitpb.Repo) { log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion()) } |
