mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user