diff options
Diffstat (limited to 'controlPanelWindow.go')
| -rw-r--r-- | controlPanelWindow.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/controlPanelWindow.go b/controlPanelWindow.go index c9e1917..dcdc59e 100644 --- a/controlPanelWindow.go +++ b/controlPanelWindow.go @@ -39,8 +39,15 @@ func makeMainWindow() { } } - me.autofix = group.NewCheckbox("Auto-correct Errors") - me.autofix.SetChecked(false) + autofix := group.NewCheckbox("Auto-correct Errors").SetChecked(true) + os.Setenv("DNS_AUTOCORRECT", "true") + autofix.Custom = func() { + if autofix.Checked() { + os.Setenv("DNS_AUTOCORRECT", "true") + } else { + os.Unsetenv("DNS_AUTOCORRECT") + } + } } func statusGrid(n *gui.Node) { |
