summaryrefslogtreecommitdiff
path: root/Sora/Views
diff options
context:
space:
mode:
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") {