make a window of the current patches
This commit is contained in:
parent
c815c8b403
commit
441c1e7ad8
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue