aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-25 20:48:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 08:05:02 +0100
commitdfbea5b5f3d66b0ec0df3e19262f8a0b2ec295af (patch)
tree532a7d0b184af7393b1fd5c99425219e4c376eee /ui/ui.go
parentMakefile: initial series of horrendous makefile hacks (diff)
downloadwireguard-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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ui.go b/ui/ui.go
index f1c5f7c6..39d2ba23 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -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 {