aboutsummaryrefslogtreecommitdiffstats
path: root/ui
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
commit1960b61fde24af7bcf3eb9f05ff13bacb0788f3d (patch)
tree2e4068eb80bdf0bdbf6c0dcd80da315cb5d409c0 /ui
parentui: raise window more aggressively (diff)
downloadwireguard-windows-1960b61fde24af7bcf3eb9f05ff13bacb0788f3d.tar.xz
wireguard-windows-1960b61fde24af7bcf3eb9f05ff13bacb0788f3d.zip
ui: remove SetFocus hack from EditDialog
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Diffstat (limited to 'ui')
-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()
})