mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 00:08:21 +00:00
Merge pull request #635 from stonerl/related-videos
don't show related in sidebar when disabled in settings
This commit is contained in:
commit
4ab60080f6
@ -11,6 +11,7 @@ struct PlayerQueueView: View {
|
|||||||
@ObservedObject private var player = PlayerModel.shared
|
@ObservedObject private var player = PlayerModel.shared
|
||||||
|
|
||||||
@Default(.saveHistory) private var saveHistory
|
@Default(.saveHistory) private var saveHistory
|
||||||
|
@Default(.showRelated) private var showRelated
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Group {
|
Group {
|
||||||
@ -19,7 +20,7 @@ struct PlayerQueueView: View {
|
|||||||
autoplaying
|
autoplaying
|
||||||
}
|
}
|
||||||
playingNext
|
playingNext
|
||||||
if sidebarQueue {
|
if sidebarQueue, showRelated {
|
||||||
related
|
related
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user