diff options
| author | Fuwn <[email protected]> | 2025-02-28 03:27:07 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-28 03:27:07 -0800 |
| commit | d4fd7e8d5f75f1ac7718aac6c1299c3ff740de75 (patch) | |
| tree | dfd4776c3a1bbe3b448310f9572d5949c80695a5 /Sora/Views/Settings/Section | |
| parent | feat: Development commit (diff) | |
| download | sora-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.swift | 7 |
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 } } |