aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui/tray.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/tray.go b/ui/tray.go
index c9091211..e15d2549 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -148,6 +148,10 @@ func (tray *Tray) SetTunnelState(tunnel *service.Tunnel, state service.TunnelSta
}
func (tray *Tray) SetTunnelStateWithNotification(tunnel *service.Tunnel, state service.TunnelState, showNotifications bool) {
+ if icon, err := tray.mtw.tunnelsView.imageProvider.IconWithOverlayForState(tray.icon, state); err == nil {
+ tray.SetIcon(icon)
+ }
+
tunnelAction := tray.tunnels[tunnel.Name]
actions := tray.ContextMenu().Actions()