aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 14:01:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 20:19:50 +0200
commit508d45a6f7195970d0bc68a1223a3282ce666010 (patch)
tree456e11464978e66542d98def6b8e1374bbec34d8 /ui/ui.go
parentui: pick more windowsy colors (diff)
downloadwireguard-windows-508d45a6f7195970d0bc68a1223a3282ce666010.tar.xz
wireguard-windows-508d45a6f7195970d0bc68a1223a3282ce666010.zip
service: inform UIs it is time to quit so they can kill tray
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/ui.go b/ui/ui.go
index f52e6ac3..6c36a100 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -59,6 +59,12 @@ func RunUI() {
}
}
+ service.IPCClientRegisterManagerStopping(func() {
+ mtw.Synchronize(func() {
+ walk.App().Exit(0)
+ })
+ })
+
//XXX: REMOVE ME!
const keepUpdaterInUnofficialBuild = true