macOS: show icon for inactive state
This commit is contained in:
parent
6b5b8f3c27
commit
150fd25569
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue