make a window of the current patches

This commit is contained in:
Jeff Carr 2025-01-30 07:42:50 -06:00
parent c815c8b403
commit 441c1e7ad8
1 changed files with 12 additions and 1 deletions

View File

@ -66,9 +66,20 @@ func (r *patchesWindow) submitPatchesBox(box *gui.Node) *patchSummary {
s.grid.NewButton("update patch summary", func() { s.grid.NewButton("update patch summary", func() {
s.Update() 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() { s.reason.Custom = func() {
if s.reason.String() != "" { if s.reason.String() != "" {
s.submitB.Enable() s.submitB.Enable()