This commit is contained in:
Jeff Carr 2025-02-09 05:18:26 -06:00
parent 074cf12864
commit d17c61ddf3
1 changed files with 9 additions and 1 deletions

View File

@ -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)