From e4126c886b9349557be4578c751cfb640a7a742c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 20 Feb 2024 14:58:51 -0600 Subject: [PATCH] attempt to write out patch files again --- submitPatches.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/submitPatches.go b/submitPatches.go index 07a6c5e..e7430c1 100644 --- a/submitPatches.go +++ b/submitPatches.go @@ -55,7 +55,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary { group1 := box.NewGroup("Submit Patches Summary") s.grid = group1.RawGrid() - s.grid.NewButton("Count Patches", func() { + s.grid.NewButton("Update Patch Counts", func() { var repocount, patchcount int for _, repo := range repolist.AllRepos() { if repo.ReadOnly() { @@ -86,15 +86,20 @@ func submitPatchesBox(box *gui.Node) *patchSummary { s.totalUserRepos.SetText(strconv.Itoa(repocount) + " go repos") }) + // this Update is deprecated and probably should be the function above + /* s.grid.NewButton("summary.Update()", func() { // update the stats s.Update() }) + */ - s.grid.NewButton("List Patches", func() { + s.grid.NewButton("Make Patches", func() { + /* this used to be the way and should probably be revisited for i, p := range s.allp { log.Info(i, p.Ref, p.RS.String()) } + */ }) s.grid.NextRow() @@ -160,6 +165,7 @@ func submitPatchesBox(box *gui.Node) *patchSummary { log.Info("something went wrong making", patchdir) return } + me.repos.View.MakePatchset(patchdir) }) // disable these until there are not dirty repos s.reason.Disable()