diff options
Diffstat (limited to 'Sora/Views/Settings/Section/SettingsSearchView.swift')
| -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 } } |