diff --git a/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView+Model.swift b/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView+Model.swift index 57c8dbf3..ae25d3a9 100644 --- a/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView+Model.swift +++ b/Passepartout/Library/Sources/AppUI/Views/Provider/VPNFiltersView+Model.swift @@ -60,7 +60,7 @@ extension VPNFiltersView { func load( with vpnManager: VPNProviderManager, initialFilters: VPNFilters? - ) { + ) where C: ProviderConfigurationIdentifiable { categories = vpnManager .allCategoryNames .sorted() @@ -77,6 +77,9 @@ extension VPNFiltersView { presets = vpnManager .allPresets .values + .filter { + $0.configurationIdentifier == C.providerConfigurationIdentifier + } .sorted { $0.description < $1.description }