Dismiss tvOS player panels when playback fails

Settings, queue, and details panels stayed open over the failure overlay
and error details sheet, obscuring them. Close any open right-side panel
on entry to the failed state.
This commit is contained in:
Arkadiusz Fal
2026-05-10 15:31:39 +02:00
parent c52f035729
commit a6b95e9dad

View File

@@ -553,6 +553,15 @@ struct TVPlayerView: View {
private func handleVideoFailed() {
stopControlsTimer()
stopAutoplayCountdown()
if showingQualitySheet {
hideQualitySheet()
}
if showingQueueSheet {
hideQueueSheet()
}
if isDetailsPanelVisible {
hideDetailsPanel()
}
withAnimation(.easeOut(duration: 0.25)) {
controlsVisible = false
}