diff options
| author | Jeff Carr <[email protected]> | 2024-02-07 13:04:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-07 13:04:25 -0600 |
| commit | 3d4e297db93544fe1380178ec4cb7fc286b2dc4c (patch) | |
| tree | 336af19e4c4bb665a585d252191c96e1d7419df8 /globalResetOptions.go | |
| parent | a0147a9f4fcb979d0f15f74e7ff56430b0b60786 (diff) | |
reorg buttons
Signed-off-by: Jeff Carr <[email protected]>
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") |
