Also show active profile as "Disabled"
This commit is contained in:
parent
15dec59692
commit
e8f65e9db0
|
@ -59,16 +59,9 @@ extension PassepartoutError {
|
|||
|
||||
extension ObservableVPNState {
|
||||
func localizedStatusDescription(isActiveProfile: Bool, withErrors: Bool, dataCountIfAvailable: Bool) -> String {
|
||||
|
||||
// FIXME: l10n, sure about this wording?
|
||||
guard isActiveProfile else {
|
||||
// return L10n.Tunnelkit.Vpn.unused
|
||||
guard isActiveProfile && isEnabled else {
|
||||
return L10n.Tunnelkit.Vpn.disabled
|
||||
}
|
||||
guard isEnabled else {
|
||||
// return L10n.Tunnelkit.Vpn.disabled
|
||||
return L10n.Organizer.Sections.active
|
||||
}
|
||||
if withErrors {
|
||||
if let errorDescription = lastError?.localizedVPNDescription, !errorDescription.isEmpty {
|
||||
return errorDescription
|
||||
|
|
Loading…
Reference in New Issue