From ca609f37c13353813d57287f3c5a2f015b9a3807 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 7 May 2019 09:50:58 +0200 Subject: ui: select first tunnel even when showing updates tab --- ui/tray.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/tray.go') diff --git a/ui/tray.go b/ui/tray.go index ee4f31d5..3d626dbf 100644 --- a/ui/tray.go +++ b/ui/tray.go @@ -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 -- cgit v1.2.3-59-g8ed1b