Rework the preference to avoid stringly typed properties.

This commit is contained in:
Damiano Galassi committed 2020-02-07 15:31:10 +01:00
1 parent 2694bdee45
commit fbc464e643
22 files changed
+321 -228

No files matched your search

@@ -72,7 +72,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
self.tags = []
self.artworks = []
let selectedCountry = UserDefaults.standard.string(forKey: "SBRatingsCountry")
let selectedCountry = Prefs.ratingsCountry
let countries = selectedCountry == "All countries" ?
Ratings.shared.countries :
Ratings.shared.countries.filter { $0.displayName == selectedCountry || $0.displayName == "USA" }