diff options
author | 2019-01-18 21:17:53 +0100 | |
---|---|---|
committer | 2019-01-18 21:17:53 +0100 | |
commit | 5aa0f1a25f2439e20b6933bb2943b5c80c23bb44 (patch) | |
tree | 69bcfa83728c0b37033890f9c8055329d227db73 /WireGuard/WireGuard/UI/macOS/View | |
parent | highlighter: do not rely on localized case comparisons (diff) | |
download | wireguard-apple-5aa0f1a25f2439e20b6933bb2943b5c80c23bb44.tar.xz wireguard-apple-5aa0f1a25f2439e20b6933bb2943b5c80c23bb44.zip |
macOS: show icon for inactive state
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/View')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift | 6 |
1 files 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) } } |