From 3d4e297db93544fe1380178ec4cb7fc286b2dc4c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 7 Feb 2024 13:04:25 -0600 Subject: reorg buttons Signed-off-by: Jeff Carr --- globalResetOptions.go | 42 ++++++++++++++++-------------------------- 1 file changed, 16 insertions(+), 26 deletions(-) (limited to 'globalResetOptions.go') 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") -- cgit v1.2.3