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 | 478d5fcf73fae6f5f2ef0f34cf384cb64300b786 (patch) | |
tree | 79ca1217d573754956608f0293f122081b112394 /ui/tray.go | |
parent | conf: retry DNS resoluion when no internet present (diff) | |
download | wireguard-windows-478d5fcf73fae6f5f2ef0f34cf384cb64300b786.tar.xz wireguard-windows-478d5fcf73fae6f5f2ef0f34cf384cb64300b786.zip |
ui: select first tunnel even when showing updates tab
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-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 |