Fix presets not filtered by configuration
This commit is contained in:
parent
61e8d8e2f7
commit
6d915f8985
|
@ -60,7 +60,7 @@ extension VPNFiltersView {
|
||||||
func load<C>(
|
func load<C>(
|
||||||
with vpnManager: VPNProviderManager<C>,
|
with vpnManager: VPNProviderManager<C>,
|
||||||
initialFilters: VPNFilters?
|
initialFilters: VPNFilters?
|
||||||
) {
|
) where C: ProviderConfigurationIdentifiable {
|
||||||
categories = vpnManager
|
categories = vpnManager
|
||||||
.allCategoryNames
|
.allCategoryNames
|
||||||
.sorted()
|
.sorted()
|
||||||
|
@ -77,6 +77,9 @@ extension VPNFiltersView {
|
||||||
presets = vpnManager
|
presets = vpnManager
|
||||||
.allPresets
|
.allPresets
|
||||||
.values
|
.values
|
||||||
|
.filter {
|
||||||
|
$0.configurationIdentifier == C.providerConfigurationIdentifier
|
||||||
|
}
|
||||||
.sorted {
|
.sorted {
|
||||||
$0.description < $1.description
|
$0.description < $1.description
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue