From 150fd25569d6193982d45148d2562fd3feea6971 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 18 Jan 2019 21:17:53 +0100 Subject: [PATCH] macOS: show icon for inactive state --- WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift b/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift index f783643..f5e37c1 100644 --- a/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift +++ b/WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift @@ -61,10 +61,10 @@ class TunnelListRow: NSView { switch status { case .active, .restarting, .reasserting: return NSImage(named: NSImage.statusAvailableName) - case .activating, .waiting: + case .activating, .waiting, .deactivating: return NSImage(named: NSImage.statusPartiallyAvailableName) - case .deactivating, .inactive: - return nil + case .inactive: + return NSImage(named: NSImage.statusNoneName) } }