From c8ac2c1995524777ddb10e6df4b90f55ec01add7 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Wed, 3 Apr 2019 19:18:53 +0530 Subject: [PATCH] macOS: Hide other-user tunnels in the status menu --- WireGuard/WireGuard/UI/macOS/StatusMenu.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift index 07b707c..5cf04d3 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift @@ -184,6 +184,7 @@ extension StatusMenu { func insertTunnelMenuItem(for tunnel: TunnelContainer, at tunnelIndex: Int) { let menuItem = TunnelMenuItem(tunnel: tunnel, action: #selector(tunnelClicked(sender:))) menuItem.target = self + menuItem.isHidden = !tunnel.isTunnelConfigurationAvailableInKeychain insertItem(menuItem, at: firstTunnelMenuItemIndex + tunnelIndex) if numberOfTunnelMenuItems == 0 { insertItem(NSMenuItem.separator(), at: firstTunnelMenuItemIndex + tunnelIndex + 1)