summaryrefslogtreecommitdiff
path: root/submitPatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-16 00:07:00 -0600
committerJeff Carr <[email protected]>2024-11-16 00:07:00 -0600
commit8afc4c713576b3509e15942dfd3dae5e8b8b8906 (patch)
tree67c7403be1d509666e49a5bc7ba688b22ab95597 /submitPatches.go
parenta26ae2bcc18e133ea8a280cef3eb44ba6a96a4ec (diff)
fix buildv0.22.2
Diffstat (limited to 'submitPatches.go')
-rw-r--r--submitPatches.go12
1 files changed, 9 insertions, 3 deletions
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