aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/managewindow.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-27 16:39:06 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-27 16:39:06 +0200
commit793549f644302f08f5c1b28451a98ffd0eecf0d1 (patch)
treec154e97a58a9a98af9a3fe316285ee3fdd0b22a3 /ui/managewindow.go
parentui: enable double buffering on confview (diff)
downloadwireguard-windows-793549f644302f08f5c1b28451a98ffd0eecf0d1.tar.xz
wireguard-windows-793549f644302f08f5c1b28451a98ffd0eecf0d1.zip
ui: fix UI hide/quit logic
Diffstat (limited to 'ui/managewindow.go')
-rw-r--r--ui/managewindow.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/managewindow.go b/ui/managewindow.go
index 85c55844..c4d6dc3c 100644
--- a/ui/managewindow.go
+++ b/ui/managewindow.go
@@ -46,7 +46,8 @@ func NewManageTunnelsWindow() (*ManageTunnelsWindow, error) {
mtw.SetLayout(walk.NewVBoxLayout())
mtw.Closing().Attach(func(canceled *bool, reason walk.CloseReason) {
// "Close to tray" instead of exiting application
- onQuit()
+ *canceled = true
+ mtw.Hide()
})
mtw.VisibleChanged().Attach(func() {
if mtw.Visible() {