Clear the import progress with the listing it describes

Replacing the list left the spinner and progress set against a row that
was going away, so the incoming listing rendered them against whichever
row carried that ID — another account's playlist, shown as importing,
until the abandoned import next noticed and cleared them itself.
This commit is contained in:
Arkadiusz Fal
2026-08-31 23:59:29 +02:00
parent 19c65e8f4b
commit 35b7d313c9

View File

@@ -303,6 +303,11 @@ struct ImportPlaylistsView: View {
// Anything still importing was chosen from the rows being replaced.
listGeneration += 1
loginChangedDuringImport = false
// Its progress belongs to a row that is going away. Left set, the
// incoming listing renders it against whichever row carries that ID
// now — another account's playlist, shown as importing.
importingPlaylistID = nil
importProgress = nil
do {
let fetchedPlaylists: [Playlist]