From 3875c864b11cdbaea5b6f94127ec4804a8477ef6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 16 Oct 2026 23:30:21 +0200 Subject: [PATCH] Show a failed remote playlist load as an error with Retry A remote playlist arrives with its title, so the body always rendered playlistContent and the errorView branch was never reached: a failed load showed the empty-playlist placeholder and no way to retry. --- Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift b/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift index 50f8e92e..dd0fd7a2 100644 --- a/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift +++ b/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift @@ -412,6 +412,11 @@ struct UnifiedPlaylistDetailView: View { ProgressView() .frame(maxWidth: .infinity) .padding(.top, 40) + } else if let errorMessage { + // A remote playlist arrives with its title, so a failed load + // lands in playlistContent rather than the body's error branch. + errorView(errorMessage) + .padding(.top, 40) } else { emptyPlaylistView }