From 22ec48af3d5d1ad99113d0cf1c81c1846d5615f1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 18 Oct 2026 23:23:06 +0200 Subject: [PATCH] Clear a stopped-load error when the playlist arrives anyway A remote playlist load cancelled on tvOS can still land. If the playlist it brings is empty, playlistBody showed the stale "Loading was stopped." instead of the empty state. --- Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift b/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift index b9395489..aa9af67a 100644 --- a/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift +++ b/Yattee/Views/Playlist/UnifiedPlaylistDetailView.swift @@ -1161,6 +1161,9 @@ struct UnifiedPlaylistDetailView: View { /// Shows a playlist that came from the public endpoint. private func apply(_ playlist: Playlist) { + // A load the user stopped on tvOS may still land; the playlist it + // brings replaces the "stopped" error. + errorMessage = nil remotePlaylist = playlist title = playlist.title descriptionText = playlist.description