don't show related in sidebar when disabled in settings

fixes #634
This commit is contained in:
Toni Förster 2024-04-20 13:35:36 +02:00
parent d1cf45c6a1
commit dd6106447f
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -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
} }
} }