aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-08-05 14:38:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-05 20:12:19 +0200
commit29fa9ae30e903be90ea208edf43eb30d0a9083e5 (patch)
tree2e4068eb80bdf0bdbf6c0dcd80da315cb5d409c0
parentui: raise window more aggressively (diff)
downloadwireguard-windows-29fa9ae30e903be90ea208edf43eb30d0a9083e5.tar.xz
wireguard-windows-29fa9ae30e903be90ea208edf43eb30d0a9083e5.zip
ui: remove SetFocus hack from EditDialog
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--ui/editdialog.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go
index 8bcbbfeb..70f4df2a 100644
--- a/ui/editdialog.go
+++ b/ui/editdialog.go
@@ -153,8 +153,6 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
dlg.syntaxEdit.SetText(dlg.config.ToWgQuick())
if tunnel != nil {
- dlg.nameEdit.SetFocus() // TODO: This works around a walk issue with scrolling in weird ways <https://github.com/lxn/walk/issues/505>. We should fix this in walk instead of here.
-
dlg.Starting().Attach(func() {
dlg.syntaxEdit.SetFocus()
})