aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-04-11 11:28:03 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:04:59 +0200
commitf9b3211e792d0b7d01b79ba01c43424280b6d7b1 (patch)
tree425ccbef3682271f5890865b035b89c7f3afa262 /ui
parentui: implement export log action (diff)
downloadwireguard-windows-f9b3211e792d0b7d01b79ba01c43424280b6d7b1.tar.xz
wireguard-windows-f9b3211e792d0b7d01b79ba01c43424280b6d7b1.zip
ui: use recently added walk.MsgBoxStyle constant instead of literal value
requires https://github.com/lxn/walk/commit/737ab3ec398e9a99114e21d33d6dc671f033d04e Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.go2
1 files changed, 1 insertions, 1 deletions
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)