mirror of
https://github.com/yattee/yattee.git
synced 2024-11-12 17:18:22 +00:00
Fix hiding history in Now Playing view in tvOS
This commit is contained in:
parent
d096fdb344
commit
8370714b61
@ -20,6 +20,7 @@ struct NowPlayingView: View {
|
||||
@EnvironmentObject<RecentsModel> private var recents
|
||||
|
||||
@Default(.saveHistory) private var saveHistory
|
||||
@Default(.showHistoryInPlayer) private var showHistoryInPlayer
|
||||
|
||||
var body: some View {
|
||||
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")) {
|
||||
ForEach(visibleWatches, id: \.videoID) { watch in
|
||||
Button {
|
||||
|
Loading…
Reference in New Issue
Block a user