aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:13:26 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:13:26 +0200
commite5dbbeff94212ca2567ae22c9f34d7ec42c7d87f (patch)
tree9e0039273dc856153387a6f076a2cbeb0a6734a9 /ui
parentui: better colors of icons (diff)
downloadwireguard-windows-e5dbbeff94212ca2567ae22c9f34d7ec42c7d87f.tar.xz
wireguard-windows-e5dbbeff94212ca2567ae22c9f34d7ec42c7d87f.zip
ui: fix initial display of public key in tunnel config dialog
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/tunnelconfigdialog.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tunnelconfigdialog.go b/ui/tunnelconfigdialog.go
index e937455d..12eaff5c 100644
--- a/ui/tunnelconfigdialog.go
+++ b/ui/tunnelconfigdialog.go
@@ -106,8 +106,8 @@ func runTunnelConfigDialog(owner walk.Form, tunnel *service.Tunnel) *conf.Config
dlg.syntaxEdit, _ = syntax.NewSyntaxEdit(dlg)
layout.SetRange(dlg.syntaxEdit, walk.Rectangle{0, 2, 2, 1})
- dlg.syntaxEdit.SetText(dlg.config.ToWgQuick())
dlg.syntaxEdit.PrivateKeyChanged().Attach(dlg.onSyntaxEditPrivateKeyChanged)
+ dlg.syntaxEdit.SetText(dlg.config.ToWgQuick())
dlg.syntaxEdit.TextChanged().Attach(dlg.updateExcludePrivateIPsCBVisible)
buttonsContainer, _ := walk.NewComposite(dlg)