From dd6106447f2aacb9127f2405e3fe1366520362c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20F=C3=B6rster?= Date: Sat, 20 Apr 2024 13:35:36 +0200 Subject: [PATCH] don't show related in sidebar when disabled in settings fixes #634 --- Shared/Player/Video Details/PlayerQueueView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shared/Player/Video Details/PlayerQueueView.swift b/Shared/Player/Video Details/PlayerQueueView.swift index 057f7d5d..da8ba085 100644 --- a/Shared/Player/Video Details/PlayerQueueView.swift +++ b/Shared/Player/Video Details/PlayerQueueView.swift @@ -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 } }