macOS: show icon for inactive state

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-01-18 21:17:53 +01:00
parent 602639ee25
commit 5aa0f1a25f
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}
}