diff options
author | Alexander Neumann <an2048@gmail.com> | 2019-07-25 15:12:04 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-07-29 09:45:07 +0200 |
commit | 0dce279a896c604054f835ac921faa20af26b610 (patch) | |
tree | b267dbf46cd412aa6f13b7d87ca7a586aed08d84 /ui/raise.go | |
parent | ui: use now exposed ItemCountChanged event (diff) | |
download | wireguard-windows-0dce279a896c604054f835ac921faa20af26b610.tar.xz wireguard-windows-0dce279a896c604054f835ac921faa20af26b610.zip |
ui: improve error handling
Signed-off-by: Alexander Neumann <an2048@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/raise.go')
-rw-r--r-- | ui/raise.go | 3 |
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 |