summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-09 07:10:52 -0700
committerFuwn <[email protected]>2025-06-09 07:10:52 -0700
commitcba2c922b0a4e64d49d9480ff92f076e2d1cf149 (patch)
treed1dd984bf3bb212741d96f98e9bd911bbe57f28e
parentfeat: Development commit (diff)
downloadsora-testing-cba2c922b0a4e64d49d9480ff92f076e2d1cf149.tar.xz
sora-testing-cba2c922b0a4e64d49d9480ff92f076e2d1cf149.zip
feat: Development commit
-rw-r--r--Sora/Views/Generic/GenericListView.swift12
1 files changed, 11 insertions, 1 deletions
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift
index 54a8fab..6bd1e02 100644
--- a/Sora/Views/Generic/GenericListView.swift
+++ b/Sora/Views/Generic/GenericListView.swift
@@ -77,12 +77,22 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View {
.onDelete(perform: removeAction)
}
.searchable(text: $searchText)
- .refreshable { settings.syncFromCloud() }
}
}
}
.navigationTitle(title)
+ .refreshable { settings.syncFromCloud() }
.toolbar {
+ #if os(macOS)
+ ToolbarItem {
+ Button(action: {
+ settings.syncFromCloud()
+ }) {
+ Label("Refresh", systemImage: "arrow.clockwise")
+ }
+ }
+ #endif
+
ToolbarItem {
Button(action: {
isShowingRemoveAllConfirmation = true