summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 05:18:26 -0600
committerJeff Carr <[email protected]>2025-02-09 05:18:26 -0600
commitd17c61ddf3544f6a01ece2fc77c8a3b3a79687f3 (patch)
tree91e81ff65c1acc50ee476660e28cb7348b9df7cf
parent074cf1286418617403896117898467625a4356cf (diff)
minor
-rw-r--r--windowForgePatchsets.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/windowForgePatchsets.go b/windowForgePatchsets.go
index 0e93588..e4c5f55 100644
--- a/windowForgePatchsets.go
+++ b/windowForgePatchsets.go
@@ -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)