diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-24 14:09:34 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-27 10:44:35 +0200 |
commit | bbe9110f230fbfc0050d8775fffa0bfabd0329c0 (patch) | |
tree | da197eba72df38da8191dcc83c067c7a1cd88a70 /ui | |
parent | ui: don't show more than one about box (diff) | |
download | wireguard-windows-bbe9110f230fbfc0050d8775fffa0bfabd0329c0.tar.xz wireguard-windows-bbe9110f230fbfc0050d8775fffa0bfabd0329c0.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>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tray.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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()) } |