summaryrefslogtreecommitdiff
path: root/Sora/Views/Generic/GenericListView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-15 00:24:53 -0700
committerFuwn <[email protected]>2025-06-15 00:24:53 -0700
commite9dd62b09274aebe68f2f5d58221946c3e21dd36 (patch)
tree12c2e2632bd17136af2d2ee2b92fc607ca963f62 /Sora/Views/Generic/GenericListView.swift
parentfeat: Development commit (diff)
downloadsora-testing-e9dd62b09274aebe68f2f5d58221946c3e21dd36.tar.xz
sora-testing-e9dd62b09274aebe68f2f5d58221946c3e21dd36.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Generic/GenericListView.swift')
-rw-r--r--Sora/Views/Generic/GenericListView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/Generic/GenericListView.swift b/Sora/Views/Generic/GenericListView.swift
index f01d3ee..20fcea8 100644
--- a/Sora/Views/Generic/GenericListView.swift
+++ b/Sora/Views/Generic/GenericListView.swift
@@ -253,8 +253,10 @@ struct GenericListView<T: Identifiable & Hashable & GenericItem>: View { // swi
manager.performSearch(settings: settings)
}
- settings.incrementBookmarkVisitCount(withID: item.id)
- settings.updateBookmarkLastVisit(withID: item.id)
+ if !allowBookmarking {
+ settings.incrementBookmarkVisitCount(withID: item.id)
+ settings.updateBookmarkLastVisit(withID: item.id)
+ }
isPresented.toggle()
}) {