Fix hiding history in Now Playing view in tvOS

This commit is contained in:
Arkadiusz Fal 2022-01-07 20:11:56 +01:00
parent d096fdb344
commit 8370714b61

View File

@ -20,6 +20,7 @@ struct NowPlayingView: View {
@EnvironmentObject<RecentsModel> private var recents @EnvironmentObject<RecentsModel> private var recents
@Default(.saveHistory) private var saveHistory @Default(.saveHistory) private var saveHistory
@Default(.showHistoryInPlayer) private var showHistoryInPlayer
var body: some View { var body: some View {
if inInfoViewController { if inInfoViewController {
@ -102,7 +103,7 @@ struct NowPlayingView: View {
} }
} }
if sections.contains(.playedPreviously), saveHistory, !visibleWatches.isEmpty { if sections.contains(.playedPreviously), saveHistory, showHistoryInPlayer, !visibleWatches.isEmpty {
Section(header: Text("Played Previously")) { Section(header: Text("Played Previously")) {
ForEach(visibleWatches, id: \.videoID) { watch in ForEach(visibleWatches, id: \.videoID) { watch in
Button { Button {