Skip to content

Commit

Permalink
Always set preset filter on selected server
Browse files Browse the repository at this point in the history
  • Loading branch information
keeshux committed Dec 12, 2024
1 parent dc86fc2 commit daac279
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,17 @@ private extension VPNProviderServerView {
}

var initialFilters: VPNFilters? {
guard let selectedEntity, filtersWithSelection else {
guard let selectedEntity else {
return nil
}
var filters = VPNFilters()
filters.categoryName = selectedEntity.server.provider.categoryName
filters.presetId = selectedEntity.preset.presetId
if filtersWithSelection {
filters.categoryName = selectedEntity.server.provider.categoryName
#if os(macOS)
filters.countryCode = selectedEntity.server.provider.countryCode
filters.countryCode = selectedEntity.server.provider.countryCode
#endif
}
return filters
}

Expand Down

0 comments on commit daac279

Please sign in to comment.