summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section/SettingsSearchView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-25 00:02:22 -0800
committerFuwn <[email protected]>2025-02-25 00:02:22 -0800
commit9b72faf4cdb95d2993a1de8f105a3703ff7f896c (patch)
tree372ddfd4656920aca6bfb98b6ec970e7843e1462 /Sora/Views/Settings/Section/SettingsSearchView.swift
parentfeat: Development commit (diff)
downloadsora-testing-9b72faf4cdb95d2993a1de8f105a3703ff7f896c.tar.xz
sora-testing-9b72faf4cdb95d2993a1de8f105a3703ff7f896c.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSearchView.swift')
-rw-r--r--Sora/Views/Settings/Section/SettingsSearchView.swift7
1 files changed, 7 insertions, 0 deletions
diff --git a/Sora/Views/Settings/Section/SettingsSearchView.swift b/Sora/Views/Settings/Section/SettingsSearchView.swift
index 63be2f1..644b02c 100644
--- a/Sora/Views/Settings/Section/SettingsSearchView.swift
+++ b/Sora/Views/Settings/Section/SettingsSearchView.swift
@@ -2,8 +2,15 @@ import SwiftUI
struct SettingsSearchView: View {
@EnvironmentObject var settings: Settings
+ @EnvironmentObject var manager: BooruManager
var body: some View {
Toggle("Suggest Search Tags", isOn: $settings.searchSuggestions)
+
+ Button(
+ "Clear Cached Tags (\(manager.cacheSize ?? "Unknown size"))"
+ ) {
+ manager.clearCachedTags()
+ }
}
}