From 29fa9ae30e903be90ea208edf43eb30d0a9083e5 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 5 Aug 2019 14:38:20 +0200 Subject: ui: remove SetFocus hack from EditDialog Signed-off-by: Alexander Neumann Signed-off-by: Jason A. Donenfeld --- ui/editdialog.go | 2 -- 1 file changed, 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 . We should fix this in walk instead of here. - dlg.Starting().Attach(func() { dlg.syntaxEdit.SetFocus() }) -- cgit v1.2.3-59-g8ed1b