diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-04-23 17:37:10 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-23 17:43:47 +0200 |
commit | 0165dbe39c3d29a27fc469a6263eec95056086bc (patch) | |
tree | 1355594787f5827bd7035a9e2b5ec341a5ce60f4 /ui/tray.go | |
parent | ui: remove nag and fix up strings (diff) | |
download | wireguard-windows-0165dbe39c3d29a27fc469a6263eec95056086bc.tar.xz wireguard-windows-0165dbe39c3d29a27fc469a6263eec95056086bc.zip |
ui: overlay main window and tray icons according to tunnel status
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Diffstat (limited to 'ui/tray.go')
-rw-r--r-- | ui/tray.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() |