From d84b64ea414eb2a2e7deadfeff03494096b8a0a2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 21 Jul 2025 19:50:16 +0200 Subject: feat: Development commit --- Sora/Data/Settings/SettingsManager.swift | 17 ++++++----------- 1 file 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 } } } -- cgit v1.2.3