mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Add remove item to search recents items
This commit is contained in:
parent
947f216fac
commit
ca7195caba
@ -333,6 +333,7 @@ struct SearchView: View {
|
||||
NavigationLink(destination: recentItemNavigationLinkDestination(item)) {
|
||||
recentItemLabel(item)
|
||||
}
|
||||
.contextMenu { recentItemContextMenu(item) }
|
||||
}
|
||||
|
||||
@ViewBuilder private func recentItemNavigationLinkDestination(_ item: RecentItem) -> some View {
|
||||
@ -393,7 +394,11 @@ struct SearchView: View {
|
||||
} label: {
|
||||
recentItemLabel(item)
|
||||
}
|
||||
.contextMenu {
|
||||
.contextMenu { recentItemContextMenu(item) }
|
||||
}
|
||||
|
||||
private func recentItemContextMenu(_ item: RecentItem) -> some View {
|
||||
Group {
|
||||
removeButton(item)
|
||||
|
||||
#if os(tvOS)
|
||||
|
Loading…
Reference in New Issue
Block a user