mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 05:32:53 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user