macOS: show icon for inactive state

This commit is contained in:
Jason A. Donenfeld 2019-01-18 21:17:53 +01:00
parent 6b5b8f3c27
commit 150fd25569
1 changed files with 3 additions and 3 deletions

View File

@ -61,10 +61,10 @@ class TunnelListRow: NSView {
switch status { switch status {
case .active, .restarting, .reasserting: case .active, .restarting, .reasserting:
return NSImage(named: NSImage.statusAvailableName) return NSImage(named: NSImage.statusAvailableName)
case .activating, .waiting: case .activating, .waiting, .deactivating:
return NSImage(named: NSImage.statusPartiallyAvailableName) return NSImage(named: NSImage.statusPartiallyAvailableName)
case .deactivating, .inactive: case .inactive:
return nil return NSImage(named: NSImage.statusNoneName)
} }
} }