aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ui/tray.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 64c58a8a..bbaf7f13 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -265,6 +265,9 @@ func (tray *Tray) updateGlobalState(globalState service.TunnelState) {
func (tray *Tray) SetTunnelState(tunnel *service.Tunnel, state service.TunnelState, showNotifications bool) {
tunnelAction := tray.tunnels[tunnel.Name]
+ if tunnelAction == nil {
+ return
+ }
actions := tray.ContextMenu().Actions()
activeCIDRsAction := actions.At(1)