Fix repeating "Default" servers in some providers
Disambiguate by apiId.
This commit is contained in:
parent
4b8cff1bb3
commit
6bff878952
|
@ -75,7 +75,12 @@ extension ProviderServer: Comparable {
|
||||||
if let li = lhs.serverIndex, let ri = rhs.serverIndex {
|
if let li = lhs.serverIndex, let ri = rhs.serverIndex {
|
||||||
return li < ri
|
return li < ri
|
||||||
}
|
}
|
||||||
return lhs.localizedDetails < rhs.localizedDetails
|
let ld = lhs.localizedDetails
|
||||||
|
let rd = rhs.localizedDetails
|
||||||
|
if ld != rd {
|
||||||
|
return ld < rd
|
||||||
|
}
|
||||||
|
return lhs.apiId < rhs.apiId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ extension ProviderServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
var localizedDetailsWithDefault: String {
|
var localizedDetailsWithDefault: String {
|
||||||
return details ?? L10n.Global.Strings.default
|
return details ?? "\(L10n.Global.Strings.default) [\(apiId)]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue