diff options
Diffstat (limited to 'globalResetOptions.go')
| -rw-r--r-- | globalResetOptions.go | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/globalResetOptions.go b/globalResetOptions.go index 1654c77..5f7f347 100644 --- a/globalResetOptions.go +++ b/globalResetOptions.go @@ -10,7 +10,22 @@ import ( func globalResetOptions(box *gui.Node) { group2 := box.NewGroup("Global Destructive Options") - globalTestingOptions(group2) + + me.autoRebuildButton = group2.NewButton("rebuild autotypist", func() { + me.autoRebuildButton.Disable() + me.autoRebuildButton.SetLabel("running....") + attemptAutoRebuild() + me.autoRebuildButton.Enable() + me.autoRebuildButton.SetLabel("rebuild autotypist") + }) + + me.stopOnErrors = group2.NewCheckbox("Stop on errors") + me.stopOnErrors.SetChecked(true) + + me.autoDryRun = group2.NewCheckbox("autotypist --dry-run") + me.autoDryRun.SetChecked(true) + + buildOptions := group2.NewGrid("buildOptions", 2, 1) buildOptions.NewLabel("start over") @@ -38,31 +53,6 @@ func globalResetOptions(box *gui.Node) { }) } -// things being testing -func globalTestingOptions(box *gui.Node) { - - var listallB *gui.Node - listallB = box.NewButton("go.wit.com/list", func() { - listallB.Disable() - listWindow() - listallB.Enable() - }) - - me.autoRebuildButton = box.NewButton("rebuild autotypist", func() { - me.autoRebuildButton.Disable() - me.autoRebuildButton.SetLabel("running....") - attemptAutoRebuild() - me.autoRebuildButton.Enable() - me.autoRebuildButton.SetLabel("rebuild autotypist") - }) - - me.stopOnErrors = box.NewCheckbox("Stop on errors") - me.stopOnErrors.SetChecked(true) - - me.autoDryRun = box.NewCheckbox("autotypist --dry-run") - me.autoDryRun.SetChecked(true) -} - func attemptAutoRebuild() { os.Setenv("GO111MODULE", "off") |
