Revert "damn"

This reverts commit cb34e1a265.
This commit is contained in:
Francesco 2025-05-25 11:23:01 +02:00
parent cb34e1a265
commit 0df613402e

View file

@ -353,6 +353,7 @@ struct SearchView: View {
searchHistory.removeAll { $0.lowercased() == trimmedTerm.lowercased() }
searchHistory.insert(trimmedTerm, at: 0)
// Keep only last 5 searches for more practical display
if searchHistory.count > 5 {
searchHistory = Array(searchHistory.prefix(5))
}