diff options
| -rw-r--r-- | Sora/Data/Settings/SettingsManager.swift | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/Sora/Data/Settings/SettingsManager.swift b/Sora/Data/Settings/SettingsManager.swift index c4f000c..08c1696 100644 --- a/Sora/Data/Settings/SettingsManager.swift +++ b/Sora/Data/Settings/SettingsManager.swift @@ -83,9 +83,8 @@ class SettingsManager: ObservableObject { // swiftlint:disable:this type_body_l syncableData( key: "bookmarks", localData: $bookmarksData, - newValue: newValue, - sort: { $0.sorted { $0.date > $1.date } }, - ) + newValue: newValue + ) { $0.sorted { $0.date > $1.date } } loadBookmarksCache() backupBookmarks() } @@ -137,8 +136,7 @@ class SettingsManager: ObservableObject { // swiftlint:disable:this type_body_l key: "searchHistory", localData: $searchHistoryData, newValue: newValue, - sort: { $0.sorted { $0.date > $1.date } }, - ) + ) { $0.sorted { $0.date > $1.date } } loadSearchHistoryCache() } } @@ -166,8 +164,7 @@ class SettingsManager: ObservableObject { // swiftlint:disable:this type_body_l key: "customProviders", localData: $customProvidersData, newValue: newValue, - sort: { $0 }, - ) + ) { $0 } } } @@ -186,8 +183,7 @@ class SettingsManager: ObservableObject { // swiftlint:disable:this type_body_l key: "folders", localData: $foldersData, newValue: newValue, - sort: { $0 } - ) + ) { $0 } } } @@ -216,8 +212,7 @@ class SettingsManager: ObservableObject { // swiftlint:disable:this type_body_l key: "providerAPIKeys", localData: $providerCredentialsData, newValue: mergedCredentials, - sort: { $0 } - ) + ) { $0 } } } |