minor
This commit is contained in:
parent
074cf12864
commit
d17c61ddf3
|
@ -90,7 +90,7 @@ func (r *patchesWindow) submitPatchesBox() {
|
|||
group1 = r.stack.NewGroup("Patchset Create")
|
||||
grid = group1.RawGrid()
|
||||
|
||||
grid.NewButton("current patch summary", func() {
|
||||
grid.NewButton("show current patches", func() {
|
||||
r.Update()
|
||||
pset, err := me.forge.MakeDevelPatchSet("current patches")
|
||||
if err != nil {
|
||||
|
@ -108,12 +108,20 @@ func (r *patchesWindow) submitPatchesBox() {
|
|||
r.reason = gadgets.NewBasicEntry(grid, "Patchset name:")
|
||||
r.reason.Custom = func() {
|
||||
if r.reason.String() != "" {
|
||||
log.Info("Forge: enable submit")
|
||||
r.submitB.Enable()
|
||||
} else {
|
||||
log.Info("Forge: disable submit")
|
||||
r.submitB.Disable()
|
||||
}
|
||||
}
|
||||
r.submitB = grid.NewButton("Submit", func() {
|
||||
if r.submitB.IsEnabled() {
|
||||
log.Info("submit button is enabled")
|
||||
} else {
|
||||
log.Info("submit button is disabled. BAD GUI TOOLKIT ERROR")
|
||||
return
|
||||
}
|
||||
pset, err := me.forge.SubmitDevelPatchSet(r.reason.String())
|
||||
if err != nil {
|
||||
log.Info(err)
|
||||
|
|
Loading…
Reference in New Issue