From 8afc4c713576b3509e15942dfd3dae5e8b8b8906 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 16 Nov 2024 00:07:00 -0600 Subject: fix build --- submitPatches.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'submitPatches.go') diff --git a/submitPatches.go b/submitPatches.go index 74608b1..f2e7842 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -57,7 +57,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.grid.NewButton("Update Patch Counts", func() { var repocount, patchcount int - for _, repo := range repolist.AllRepos() { + loop := me.repos.View.UnmergedRepos() + for loop.Scan() { + repo := loop.Repo() if repo.ReadOnly() { continue } @@ -72,7 +74,9 @@ func submitPatchesBox(box *gui.Node) *patchSummary { repocount = 0 patchcount = 0 - for _, repo := range repolist.AllRepos() { + loop = me.repos.View.UnmergedRepos() + for loop.Scan() { + repo := loop.Repo() if repo.ReadOnly() { continue } @@ -208,7 +212,9 @@ func (s *patchSummary) Update() { var total, totalgo, dirty, readonly int var userT, develT, masterT int // var userP, develP, masterP int - for _, repo := range repolist.AllRepos() { + loop := me.repos.View.UnmergedRepos() + for loop.Scan() { + repo := loop.Repo() total += 1 if repo.Status.IsDirty() { dirty += 1 -- cgit v1.2.3