From 76268a71bbfdfe27e70c1a225adc97251706797f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 13 Nov 2024 17:53:12 -0600 Subject: [PATCH] better prepare-release button --- globalDisplayOptions.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index 514a48f..15d5ebf 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -93,6 +93,8 @@ func globalDisplayOptions(box *gui.Node) { */ grid.NewButton("make prepare-release", func() { + me.Disable() + defer me.Enable() loop := me.repos.View.ReposSortByName() for loop.Scan() { repo := loop.Repo() @@ -106,6 +108,10 @@ func globalDisplayOptions(box *gui.Node) { } } findNext() + if setAllBranchesToMaster() { + // if it succeeds, disable this button + me.setBranchesToMasterB.Disable() + } }) grid.NextRow()