diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-08 06:06:19 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-08 19:05:39 +0100 |
commit | 2944a455bf03b6013c4cad340797767957e58961 (patch) | |
tree | 7e36fe01c103e350d838153b59f1207b9ce5a9d4 /ui/ui.go | |
parent | build: patch golang against dll injection (diff) | |
download | wireguard-windows-2944a455bf03b6013c4cad340797767957e58961.tar.xz wireguard-windows-2944a455bf03b6013c4cad340797767957e58961.zip |
ui: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/ui.go')
-rw-r--r-- | ui/ui.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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() } |