From 0165dbe39c3d29a27fc469a6263eec95056086bc Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 23 Apr 2019 17:37:10 +0200 Subject: ui: overlay main window and tray icons according to tunnel status Signed-off-by: Alexander Neumann --- ui/tray.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/tray.go') 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() -- cgit v1.2.3-59-g8ed1b