diff options
| author | Fuwn <[email protected]> | 2025-07-21 19:50:16 +0200 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-21 19:50:16 +0200 |
| commit | d84b64ea414eb2a2e7deadfeff03494096b8a0a2 (patch) | |
| tree | 4f9b827064a6d6fba766f9b4bedab56756ad433e /Sora/Data | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-d84b64ea414eb2a2e7deadfeff03494096b8a0a2.tar.xz sora-testing-d84b64ea414eb2a2e7deadfeff03494096b8a0a2.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Data')
| -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 } } } |