aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-18 21:17:53 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-18 21:17:53 +0100
commit5aa0f1a25f2439e20b6933bb2943b5c80c23bb44 (patch)
tree69bcfa83728c0b37033890f9c8055329d227db73 /WireGuard
parenthighlighter: do not rely on localized case comparisons (diff)
downloadwireguard-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')
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/TunnelListRow.swift6
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 f7836438..f5e37c12 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)
}
}