diff options
Diffstat (limited to 'Sora/Views/Generic')
| -rw-r--r-- | Sora/Views/Generic/GenericListView.swift | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift index 7c568d6..004a278 100644 --- a/Sora/Views/Generic/GenericListView.swift +++ b/Sora/Views/Generic/GenericListView.swift @@ -121,12 +121,12 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { .pickerStyle(.menu) Picker("Collection", selection: $selectedCollectionOption) { - Text(CollectionPickerOption.all.name(settings)).tag(CollectionPickerOption.all) + Text(CollectionPickerOption.all.name(settings: settings)) + .tag(CollectionPickerOption.all) if items.contains(where: { $0.folder == nil }) { - Text(CollectionPickerOption.uncategorized.name(settings)).tag( - CollectionPickerOption.uncategorized - ) + Text(CollectionPickerOption.uncategorized.name(settings: settings)) + .tag(CollectionPickerOption.uncategorized) } ForEach(settings.folders.filter { $0.topLevelName == nil }, id: \.id) { folder in @@ -225,12 +225,12 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { Menu { Picker("Collection", selection: $selectedCollectionOption) { - Text(CollectionPickerOption.all.name(settings)).tag(CollectionPickerOption.all) + Text(CollectionPickerOption.all.name(settings: settings)) + .tag(CollectionPickerOption.all) if items.contains(where: { $0.folder == nil }) { - Text(CollectionPickerOption.uncategorized.name(settings)).tag( - CollectionPickerOption.uncategorized - ) + Text(CollectionPickerOption.uncategorized.name(settings: settings)) + .tag(CollectionPickerOption.uncategorized) } ForEach(settings.folders.filter { $0.topLevelName == nil }, id: \.id) { folder in |