diff options
| author | Jeff Carr <[email protected]> | 2024-02-01 13:51:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-01 13:51:17 -0600 |
| commit | a0cd9ee4a1b12295a206d31dd314fedaa12425c4 (patch) | |
| tree | fe8efe4d30ae0a3a2d06b91ec9b870ea85e13fd3 /globalDisplayOptions.go | |
| parent | 41a61668908536a860dc78de0c9eedbfc179dd63 (diff) | |
kind of work, but still manual process
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'globalDisplayOptions.go')
| -rw-r--r-- | globalDisplayOptions.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go index c561521..bcec74f 100644 --- a/globalDisplayOptions.go +++ b/globalDisplayOptions.go @@ -75,21 +75,24 @@ func globalDisplayOptions(box *gui.Node) { me.scanEveryMinute = group1.NewCheckbox("Scan every minute").SetChecked(false) - group1.NewButton("set all branches to master", func() { + me.setBranchesToMasterB = group1.NewButton("set all branches to master", func() { me.Disable() for _, repo := range me.allrepos { if whitelist(repo.String()) { continue } if repo.status.CheckoutMaster() { - log.Warn("set master branch worked", repo.String) + log.Warn("set master branch worked", repo.String()) repo.newScan() } else { - log.Warn("set master branch failed", repo.String) + log.Warn("set master branch failed", repo.String()) repo.newScan() + me.Enable() + return } } me.Enable() + me.setBranchesToMasterB.Disable() }) var longB *gui.Node |
