diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 20:48:42 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-28 08:05:02 +0100 |
commit | dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af (patch) | |
tree | 532a7d0b184af7393b1fd5c99425219e4c376eee /ui/ui.go | |
parent | Makefile: initial series of horrendous makefile hacks (diff) | |
download | wireguard-windows-dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af.tar.xz wireguard-windows-dfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af.zip |
ui: move syntaxedit to sub-package
This speeds up compilation time considerably by not needing to invoke
cgo for changes in the main UI.
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,6 +12,7 @@ import ( "golang.zx2c4.com/wireguard/windows/conf" "golang.zx2c4.com/wireguard/windows/service" "golang.zx2c4.com/wireguard/windows/ui/internal/walk" + "golang.zx2c4.com/wireguard/windows/ui/syntax" "os" ) @@ -47,7 +48,7 @@ func RunUI() { tl, _ := walk.NewTextLabel(mw) tl.SetText("Public key: (unknown)") - se, _ := NewSyntaxEdit(mw) + se, _ := syntax.NewSyntaxEdit(mw) lastPrivate := "" se.PrivateKeyChanged().Attach(func(privateKey string) { if privateKey == lastPrivate { |