mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +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
|
@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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user