From ce8a8cbef3b7d9a393516add338c2e81908f24d4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 9 Jan 2022 16:11:03 +0100 Subject: [PATCH] Fix selecting video details tab on sidebar visibility change --- Shared/Player/VideoDetails.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/Player/VideoDetails.swift b/Shared/Player/VideoDetails.swift index c545ef3c..282f6171 100644 --- a/Shared/Player/VideoDetails.swift +++ b/Shared/Player/VideoDetails.swift @@ -5,7 +5,7 @@ import SwiftUI struct VideoDetails: View { enum Page { - case info, queue, related, comments + case info, comments, related, queue } @Binding var sidebarQueue: Bool @@ -129,7 +129,7 @@ struct VideoDetails: View { } .onChange(of: sidebarQueue) { queue in if queue { - if currentPage == .queue { + if currentPage == .related || currentPage == .queue { currentPage = .info } } else if video.isNil {