Fix history view

This commit is contained in:
Arkadiusz Fal 2022-12-15 12:09:36 +01:00
parent f6d3d5504a
commit cb6eaa180e

View File

@ -19,13 +19,13 @@ struct HistoryView: View {
} }
} else { } else {
ForEach(visibleWatches, id: \.videoID) { watch in ForEach(visibleWatches, id: \.videoID) { watch in
PlayerQueueRow( let video = player.historyVideo(watch.videoID) ?? watch.video
item: PlayerQueueItem.from(watch, video: player.historyVideo(watch.videoID)),
history: true ContentItemView(item: .init(video: video))
) .environment(\.listingStyle, .list)
.contextMenu { .contextMenu {
VideoContextMenuView(video: player.historyVideo(watch.videoID) ?? watch.video) VideoContextMenuView(video: video)
} }
} }
} }
} }