mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 00:22:12 +00:00
damn
This commit is contained in:
parent
e32c1d39bc
commit
cb34e1a265
1 changed files with 0 additions and 1 deletions
|
|
@ -353,7 +353,6 @@ struct SearchView: View {
|
||||||
searchHistory.removeAll { $0.lowercased() == trimmedTerm.lowercased() }
|
searchHistory.removeAll { $0.lowercased() == trimmedTerm.lowercased() }
|
||||||
searchHistory.insert(trimmedTerm, at: 0)
|
searchHistory.insert(trimmedTerm, at: 0)
|
||||||
|
|
||||||
// Keep only last 5 searches for more practical display
|
|
||||||
if searchHistory.count > 5 {
|
if searchHistory.count > 5 {
|
||||||
searchHistory = Array(searchHistory.prefix(5))
|
searchHistory = Array(searchHistory.prefix(5))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue