summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-28 03:27:07 -0800
committerFuwn <[email protected]>2025-02-28 03:27:07 -0800
commitd4fd7e8d5f75f1ac7718aac6c1299c3ff740de75 (patch)
treedfd4776c3a1bbe3b448310f9572d5949c80695a5 /Sora/Views/Settings/Section
parentfeat: Development commit (diff)
downloadsora-testing-d4fd7e8d5f75f1ac7718aac6c1299c3ff740de75.tar.xz
sora-testing-d4fd7e8d5f75f1ac7718aac6c1299c3ff740de75.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/Section')
-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 cb0d3c7..fbe1656 100644
--- a/Sora/Views/Settings/Section/SettingsSearchView.swift
+++ b/Sora/Views/Settings/Section/SettingsSearchView.swift
@@ -24,5 +24,12 @@ struct SettingsSearchView: View {
#if os(macOS)
.frame(maxWidth: .infinity, alignment: .trailing)
#endif
+
+ Button("Clear History") {
+ settings.searchHistory.removeAll()
+ }
+ #if os(macOS)
+ .frame(maxWidth: .infinity, alignment: .trailing)
+ #endif
}
}