From 441c1e7ad8a3fa5575667128057f1f8e85f69443 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Jan 2025 07:42:50 -0600 Subject: [PATCH] make a window of the current patches --- windowPatchesSubmit.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/windowPatchesSubmit.go b/windowPatchesSubmit.go index dd926c0..b3961d0 100644 --- a/windowPatchesSubmit.go +++ b/windowPatchesSubmit.go @@ -66,9 +66,20 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary { s.grid.NewButton("update patch summary", func() { s.Update() + pset, err := me.forge.MakeDevelPatchSet("current patches") + if err != nil { + log.Info("patchset creation failed", err) + return + } + if pset == nil { + log.Info("you have no current patches") + return + } + win := makePatchWindow(pset) + win.Show() }) - s.reason = gadgets.NewBasicEntry(s.grid, "set name:") + s.reason = gadgets.NewBasicEntry(s.grid, "Patchset name:") s.reason.Custom = func() { if s.reason.String() != "" { s.submitB.Enable()