diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 07:42:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 07:42:50 -0600 |
| commit | 441c1e7ad8a3fa5575667128057f1f8e85f69443 (patch) | |
| tree | 7de73c816aee2c8ff070deb92d875c04b4b57b3e | |
| parent | c815c8b403e654557ad2fe95776934403ad2165c (diff) | |
make a window of the current patches
| -rw-r--r-- | windowPatchesSubmit.go | 13 |
1 files changed, 12 insertions, 1 deletions
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() |
