better prepare-release button

This commit is contained in:
Jeff Carr 2024-11-13 17:53:12 -06:00
parent 3502ea0b5b
commit 76268a71bb
1 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,8 @@ func globalDisplayOptions(box *gui.Node) {
*/ */
grid.NewButton("make prepare-release", func() { grid.NewButton("make prepare-release", func() {
me.Disable()
defer me.Enable()
loop := me.repos.View.ReposSortByName() loop := me.repos.View.ReposSortByName()
for loop.Scan() { for loop.Scan() {
repo := loop.Repo() repo := loop.Repo()
@ -106,6 +108,10 @@ func globalDisplayOptions(box *gui.Node) {
} }
} }
findNext() findNext()
if setAllBranchesToMaster() {
// if it succeeds, disable this button
me.setBranchesToMasterB.Disable()
}
}) })
grid.NextRow() grid.NextRow()