From 8054c9f44a57a56038f9121da2627562355ab135 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 19 Nov 2022 13:12:29 +0100 Subject: [PATCH] Minor fixes --- Shared/Player/Video Details/VideoDetails.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shared/Player/Video Details/VideoDetails.swift b/Shared/Player/Video Details/VideoDetails.swift index 4fead512..33f0bb4e 100644 --- a/Shared/Player/Video Details/VideoDetails.swift +++ b/Shared/Player/Video Details/VideoDetails.swift @@ -87,7 +87,7 @@ struct VideoDetails: View { if video.isNil || !VideoDetailsTool.find(for: page)!.isAvailable(for: video!, sidebarQueue: sidebarQueue) { - page = .info + page = video == nil ? .inspector : (video!.isLocal ? .inspector : .info) } guard video != nil, accounts.app.supportsSubscriptions else { @@ -135,7 +135,7 @@ struct VideoDetails: View { case .comments: CommentsView(embedInScrollView: true) .onAppear { - comments.loadIfNeeded() + Delay.by(0.3) { comments.loadIfNeeded() } } case .related: