summaryrefslogtreecommitdiff
path: root/Sora/Views
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-03-17 05:36:30 -0700
committerFuwn <[email protected]>2025-03-17 05:36:30 -0700
commit8218f393408a0abe97ae5a9d55479bfd62faca1c (patch)
treee18c277f447e1837d483a18a8bf75c9d72da8a44 /Sora/Views
parentfeat: Development commit (diff)
downloadsora-testing-8218f393408a0abe97ae5a9d55479bfd62faca1c.tar.xz
sora-testing-8218f393408a0abe97ae5a9d55479bfd62faca1c.zip
feat: Development commit
Diffstat (limited to 'Sora/Views')
-rw-r--r--Sora/Views/Generic/GenericListView.swift2
-rw-r--r--Sora/Views/Settings/Section/SettingsSettingsView.swift6
2 files changed, 4 insertions, 4 deletions
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift
index f6805ad..7981d8b 100644
--- a/Sora/Views/Generic/GenericListView.swift
+++ b/Sora/Views/Generic/GenericListView.swift
@@ -60,7 +60,7 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View {
}
.navigationTitle(title)
.searchable(text: $searchText)
- .refreshable { settings.pullSyncedSettings() }
+ .refreshable { settings.syncFromCloud() }
.toolbar {
ToolbarItem {
Button(action: {
diff --git a/Sora/Views/Settings/Section/SettingsSettingsView.swift b/Sora/Views/Settings/Section/SettingsSettingsView.swift
index 0916c99..ab6a31a 100644
--- a/Sora/Views/Settings/Section/SettingsSettingsView.swift
+++ b/Sora/Views/Settings/Section/SettingsSettingsView.swift
@@ -4,14 +4,14 @@ struct SettingsSettingsView: View {
@EnvironmentObject var settings: SettingsManager
var body: some View {
- Toggle(isOn: $settings.enableICloudSync) {
+ Toggle(isOn: $settings.enableSync) {
Text("Sync with iCloud")
Text("Keep bookmarks, search history, and providers consistent across all your devices.")
.font(.caption)
}
- .onChange(of: settings.enableICloudSync) { _, _ in
- settings.syncToICloud()
+ .onChange(of: settings.enableSync) { _, _ in
+ settings.syncToCloud()
}
Button("Reset to Defaults") {