aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/raise.go
diff options
context:
space:
mode:
authorAlexander Neumann <an2048@gmail.com>2019-07-25 15:12:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-07-29 09:45:07 +0200
commit61a567ac0166a0cf4af42d5bdff7438176223727 (patch)
treeb267dbf46cd412aa6f13b7d87ca7a586aed08d84 /ui/raise.go
parentui: use now exposed ItemCountChanged event (diff)
downloadwireguard-windows-61a567ac0166a0cf4af42d5bdff7438176223727.tar.xz
wireguard-windows-61a567ac0166a0cf4af42d5bdff7438176223727.zip
ui: improve error handling
Signed-off-by: Alexander Neumann <an2048@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui/raise.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/raise.go b/ui/raise.go
index 6d08c6bb..b74b5ed6 100644
--- a/ui/raise.go
+++ b/ui/raise.go
@@ -10,7 +10,6 @@ import (
"os"
"runtime"
- "github.com/lxn/walk"
"github.com/lxn/win"
"golang.org/x/sys/windows"
)
@@ -54,7 +53,7 @@ func WaitForRaiseUIThenQuit() {
return 0
}, 0, 0, win.WINEVENT_SKIPOWNPROCESS|win.WINEVENT_OUTOFCONTEXT)
if err != nil {
- walk.MsgBox(nil, "WireGuard Detection Error", fmt.Sprintf("Unable to wait for WireGuard window to appear: %v", err), walk.MsgBoxIconError)
+ showErrorCustom(nil, "WireGuard Detection Error", fmt.Sprintf("Unable to wait for WireGuard window to appear: %v", err))
}
for {
var msg win.MSG