summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--windowPatchesSubmit.go13
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()