mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 10:55:03 +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() {
|
private func handleVideoFailed() {
|
||||||
stopControlsTimer()
|
stopControlsTimer()
|
||||||
stopAutoplayCountdown()
|
stopAutoplayCountdown()
|
||||||
|
if showingQualitySheet {
|
||||||
|
hideQualitySheet()
|
||||||
|
}
|
||||||
|
if showingQueueSheet {
|
||||||
|
hideQueueSheet()
|
||||||
|
}
|
||||||
|
if isDetailsPanelVisible {
|
||||||
|
hideDetailsPanel()
|
||||||
|
}
|
||||||
withAnimation(.easeOut(duration: 0.25)) {
|
withAnimation(.easeOut(duration: 0.25)) {
|
||||||
controlsVisible = false
|
controlsVisible = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user