diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-07 09:50:58 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-07 09:50:58 +0200 |
commit | ca609f37c13353813d57287f3c5a2f015b9a3807 (patch) | |
tree | 79ca1217d573754956608f0293f122081b112394 /ui | |
parent | conf: retry DNS resoluion when no internet present (diff) | |
download | wireguard-windows-ca609f37c13353813d57287f3c5a2f015b9a3807.tar.xz wireguard-windows-ca609f37c13353813d57287f3c5a2f015b9a3807.zip |
ui: select first tunnel even when showing updates tab
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tray.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -308,8 +308,11 @@ func (tray *Tray) UpdateFound() { action.SetImage(bitmap) action.SetDefault(true) showUpdateTab := func() { - tray.mtw.Show() + if !tray.mtw.Visible() { + tray.mtw.tunnelsPage.listView.SelectFirstActiveTunnel() + } tray.mtw.tabs.SetCurrentIndex(2) + tray.mtw.Show() } action.Triggered().Attach(showUpdateTab) tray.clicked = showUpdateTab |