diff options
| author | Fuwn <[email protected]> | 2025-02-20 20:22:26 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-20 20:22:26 -0800 |
| commit | cb5b25a98cf22c194736432ad4d27ca94a5b69be (patch) | |
| tree | 57f371e7c7e7b4f77ae7ae7ca47a3926fca14b38 /Sora/Views/BookmarksView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-cb5b25a98cf22c194736432ad4d27ca94a5b69be.tar.xz sora-testing-cb5b25a98cf22c194736432ad4d27ca94a5b69be.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/BookmarksView.swift')
| -rw-r--r-- | Sora/Views/BookmarksView.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Sora/Views/BookmarksView.swift b/Sora/Views/BookmarksView.swift index 5d27b6a..7c206ac 100644 --- a/Sora/Views/BookmarksView.swift +++ b/Sora/Views/BookmarksView.swift @@ -34,9 +34,15 @@ struct BookmarksView: View { ForEach(filteredBookmarks, id: \.self) { bookmark in Button(action: { + let previousProvider = settings.preferredBooru + settings.preferredBooru = bookmark.provider manager.searchText = bookmark.tags.joined(separator: " ") selectedTab = 0 + + if previousProvider == settings.preferredBooru { + manager.performSearch() + } }) { let badgeView = Text(bookmark.provider.rawValue.capitalized) |