aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 21:14:11 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 21:14:11 +0200
commit14c671a26a7a9d1ccfce422e0b02fef724d25fd1 (patch)
tree31f0f5ddf1c55612873db5906c4f57d029a6e30b /ui
parentui: show first active tunnels on window popup (diff)
downloadwireguard-windows-14c671a26a7a9d1ccfce422e0b02fef724d25fd1.tar.xz
wireguard-windows-14c671a26a7a9d1ccfce422e0b02fef724d25fd1.zip
ui: select tunnel on tray start error
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/tray.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 8a585f4b..492f820c 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -144,7 +144,8 @@ func (tray *Tray) addTunnelAction(tunnel *service.Tunnel) {
if err != nil {
tray.mtw.Synchronize(func() {
tray.mtw.Show()
- //TODO: select tunnel that we're showing the error for in mtw
+ tray.mtw.tunnelsPage.tunnelsView.selectTunnel(tclosure.Name)
+ tray.mtw.tabs.SetCurrentIndex(0)
if oldState == service.TunnelUnknown {
walk.MsgBox(tray.mtw, "Failed to determine tunnel state", err.Error(), walk.MsgBoxIconError)
} else if oldState == service.TunnelStopped {