From 2944a455bf03b6013c4cad340797767957e58961 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 8 Mar 2019 06:06:19 +0100 Subject: ui: style Signed-off-by: Jason A. Donenfeld --- ui/ui.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ui/ui.go') 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() } -- cgit v1.2.3-59-g8ed1b