Merge pull request #635 from stonerl/related-videos

don't show related in sidebar when disabled in settings
This commit is contained in:
Arkadiusz Fal 2024-05-16 18:13:05 +02:00 committed by GitHub
commit 4ab60080f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,6 +11,7 @@ struct PlayerQueueView: View {
@ObservedObject private var player = PlayerModel.shared
@Default(.saveHistory) private var saveHistory
@Default(.showRelated) private var showRelated
var body: some View {
Group {
@ -19,7 +20,7 @@ struct PlayerQueueView: View {
autoplaying
}
playingNext
if sidebarQueue {
if sidebarQueue, showRelated {
related
}
}