diff options
author | 2019-08-25 01:59:12 +0200 | |
---|---|---|
committer | 2019-08-25 01:59:12 +0200 | |
commit | f5b3b487d72c9d15da953503d2ff09712faea188 (patch) | |
tree | 02f697d899476258f604042249e1f73f07e156af | |
parent | version: use upstream RtlGetVersion (diff) | |
download | wireguard-windows-f5b3b487d72c9d15da953503d2ff09712faea188.tar.xz wireguard-windows-f5b3b487d72c9d15da953503d2ff09712faea188.zip |
ui: when check error, reparse text
Sometimes walk misfires check events. For example, when pressing enter
in the title box. This works around the consequences.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | ui/editdialog.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go index 70f4df2a..fec2f4d2 100644 --- a/ui/editdialog.go +++ b/ui/editdialog.go @@ -255,8 +255,9 @@ func (dlg *EditDialog) onBlockUntunneledTrafficCBCheckedChanged() { return err: - showErrorCustom(dlg, "Invalid configuration", "Unable to toggle untunneled traffic blocking state.") - dlg.blockUntunneledTrafficCB.SetVisible(false) + text := dlg.syntaxEdit.Text() + dlg.syntaxEdit.SetText("") + dlg.syntaxEdit.SetText(text) } func (dlg *EditDialog) onBlockUntunneledTrafficStateChanged(state int) { |