From 9e0f74a393138f66d09d7e32d4c735db8b4aedca Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Thu, 11 Apr 2019 11:28:03 +0200 Subject: ui: use recently added walk.MsgBoxStyle constant instead of literal value requires https://github.com/lxn/walk/commit/737ab3ec398e9a99114e21d33d6dc671f033d04e Signed-off-by: Alexander Neumann --- ui/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.go b/ui/ui.go index c068795f..0bd3ab6b 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -25,7 +25,7 @@ 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.` func nag() { - if walk.MsgBox(nil, "THANKS FOR REPORTING BUGS COME AGAIN ANOTHER DAY", nagMessage, walk.MsgBoxIconError|walk.MsgBoxYesNo|0x00001000) != walk.DlgCmdNo { + if walk.MsgBox(nil, "THANKS FOR REPORTING BUGS COME AGAIN ANOTHER DAY", nagMessage, walk.MsgBoxIconError|walk.MsgBoxYesNo|walk.MsgBoxSystemModal) != walk.DlgCmdNo { onQuit() } time.AfterFunc(time.Minute*2, nag) -- cgit v1.2.3-59-g8ed1b