aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-24 14:09:34 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-27 10:44:35 +0200
commit11346cbdcd03a90b789d1cd903e1d154061994e5 (patch)
treeda197eba72df38da8191dcc83c067c7a1cd88a70 /ui
parentui: don't show more than one about box (diff)
downloadwireguard-windows-11346cbdcd03a90b789d1cd903e1d154061994e5.tar.xz
wireguard-windows-11346cbdcd03a90b789d1cd903e1d154061994e5.zip
ui: always show manage page on tray click
It's confusing if it only does this when the window is not already visible. Reported-by: Kai Haberzettl <khaberz@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/tray.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 2d6814e1..6a91b320 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -333,10 +333,8 @@ func (tray *Tray) UpdateFound() {
}
func (tray *Tray) onManageTunnels() {
- if !tray.mtw.Visible() {
- tray.mtw.tunnelsPage.listView.SelectFirstActiveTunnel()
- tray.mtw.tabs.SetCurrentIndex(0)
- }
+ tray.mtw.tunnelsPage.listView.SelectFirstActiveTunnel()
+ tray.mtw.tabs.SetCurrentIndex(0)
raise(tray.mtw.Handle())
}