aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-08 06:06:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-08 19:05:39 +0100
commit89a66ae462d386615348602f96507c7210264e9f (patch)
tree7e36fe01c103e350d838153b59f1207b9ce5a9d4 /ui
parentbuild: patch golang against dll injection (diff)
downloadwireguard-windows-89a66ae462d386615348602f96507c7210264e9f.tar.xz
wireguard-windows-89a66ae462d386615348602f96507c7210264e9f.zip
ui: style
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 22524e9d..d42f60ed 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -36,11 +36,12 @@ But because this is pre-release software, we're not confident it's something you
Would you like to quit WireGuard now? If not, you'll be nagged again in two minutes about the same thing.`
var quit func()
+
func nag() {
- if walk.MsgBox(nil, "THANKS FOR REPORTING BUGS COME AGAIN ANOTHER DAY",nagMessage, walk.MsgBoxIconError | walk.MsgBoxYesNo | 0x00001000) != walk.DlgCmdNo {
- quit()
+ if walk.MsgBox(nil, "THANKS FOR REPORTING BUGS COME AGAIN ANOTHER DAY", nagMessage, walk.MsgBoxIconError|walk.MsgBoxYesNo|0x00001000) != walk.DlgCmdNo {
+ quit()
}
- time.AfterFunc(time.Minute * 2, nag)
+ time.AfterFunc(time.Minute*2, nag)
}
func RunUI() {
@@ -116,7 +117,7 @@ func RunUI() {
t := time.NewTicker(time.Second)
for {
updateConfView()
- <- t.C
+ <-t.C
}
}()
showRunningView := func(on bool) {
@@ -258,7 +259,7 @@ func RunUI() {
}
}()
- time.AfterFunc(time.Minute * 15, nag)
+ time.AfterFunc(time.Minute*15, nag)
mw.Run()
}