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