diff options
| author | Jeff Carr <[email protected]> | 2024-03-02 11:51:16 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-02 11:51:16 -0600 |
| commit | 46de348eb26cae3558ca943b46472a8cdc3e3a96 (patch) | |
| tree | d56cffcd93445910ddb1abe0d5243467126615ce /controlPanelWindow.go | |
| parent | 7b4eb41de7e1c65c07dfc8f04f1263b3f258b268 (diff) | |
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) { |
