mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 14:03:41 +00:00
Fix search recents on tvOS
This commit is contained in:
parent
27d140af01
commit
08c62c1125
@ -311,7 +311,11 @@ struct SearchView: View {
|
|||||||
Button {
|
Button {
|
||||||
switch item.type {
|
switch item.type {
|
||||||
case .query:
|
case .query:
|
||||||
queryText = item.title
|
#if os(tvOS)
|
||||||
|
state.queryText = item.title
|
||||||
|
#else
|
||||||
|
queryText = item.title
|
||||||
|
#endif
|
||||||
state.changeQuery { query in query.query = item.title }
|
state.changeQuery { query in query.query = item.title }
|
||||||
|
|
||||||
updateFavoriteItem()
|
updateFavoriteItem()
|
||||||
@ -351,6 +355,9 @@ struct SearchView: View {
|
|||||||
.contextMenu {
|
.contextMenu {
|
||||||
removeButton(item)
|
removeButton(item)
|
||||||
removeAllButton
|
removeAllButton
|
||||||
|
#if os(tvOS)
|
||||||
|
Button("Cancel", role: .cancel) {}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user