mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
parent
cb34e1a265
commit
0df613402e
1 changed files with 1 additions and 0 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue