summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--globalDisplayOptions.go2
-rw-r--r--main.go2
-rw-r--r--structs.go43
3 files changed, 9 insertions, 38 deletions
diff --git a/globalDisplayOptions.go b/globalDisplayOptions.go
index 72db049..22c6b23 100644
--- a/globalDisplayOptions.go
+++ b/globalDisplayOptions.go
@@ -29,6 +29,7 @@ func globalDisplayOptions(box *gui.Node) {
grid.NewButton("make prepare-release", func() {
me.Disable()
+ me.release.box.Disable()
defer me.Enable()
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
@@ -46,6 +47,7 @@ func globalDisplayOptions(box *gui.Node) {
if setAllBranchesToMaster() {
// if it succeeds, disable this button
me.setBranchesToMasterB.Disable()
+ me.release.box.Enable()
}
})
grid.NextRow()
diff --git a/main.go b/main.go
index 560bb89..9580677 100644
--- a/main.go
+++ b/main.go
@@ -95,6 +95,8 @@ func main() {
// so I can't trust even what I see. It's complicated right now still.
me.release.openrepo.Disable()
+ // disable the gui until the repos are scanned
+ me.release.box.Disable()
me.Disable()
// parse config file and scan for .git repos
diff --git a/structs.go b/structs.go
index 661f99a..c77c73a 100644
--- a/structs.go
+++ b/structs.go
@@ -26,22 +26,17 @@ type autoType struct {
// our view of the repositories
repos *repoWindow
- // #### guireleaser repolist display options
- // autoHideReadOnly *gui.Node
- // autoHideReleased *gui.Node
- // ignoreWhitelist *gui.Node
-
// #### autotypist Global Build Options
// what to change all the branches to
// so, as a developer, you can move all the repos
// to the 'devel' branch and then test a devel branch build
// then switch back to your 'username' branch and do a build there
- toMoveToBranch string
+ // toMoveToBranch string
// displays the preferred names used for the repo tree state
- mainBranch *gadgets.BasicCombobox
- develBranch *gadgets.BasicCombobox
- userBranch *gadgets.BasicCombobox
+ // mainBranch *gadgets.BasicCombobox
+ // develBranch *gadgets.BasicCombobox
+ // userBranch *gadgets.BasicCombobox
// this button will regenerate everyones go.mod & go.sum
rerunGoMod *gui.Node
@@ -80,36 +75,8 @@ type autoType struct {
duration *gui.Node
}
+/*
func (my *autoType) GoSrcPath() string {
return my.goSrcPwd.String()
}
-
-/*
-var cmds *gui.Node
-var doit *gui.Node
-var dryrun *gui.Node
-*/
-
-/*
-type repo struct {
- hidden bool
- path string
- lasttagrev string
- lasttag string
-
- // what version to release this package as
- targetVersionS string
-
- pLabel *gui.Node // path label
- // bLabel *gui.Node // branch label
- lastTag *gui.Node // last tagged version label
- vLabel *gui.Node // version label
- dirtyLabel *gui.Node // git state (dirty or not?)
- goSumStatus *gui.Node // what is the state of the go.sum file
- targetVersion *gui.Node // the final repo release version
-
- statusButton *gui.Node // opens up the status window
-
- status *repostatus.RepoStatus
-}
*/