mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user