From 35b7d313c95aebaa8d2c48742a6c77f164ac3b39 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 31 Aug 2026 23:59:29 +0200 Subject: [PATCH] Clear the import progress with the listing it describes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Yattee/Views/Settings/ImportPlaylistsView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Yattee/Views/Settings/ImportPlaylistsView.swift b/Yattee/Views/Settings/ImportPlaylistsView.swift index 5b2ee1a2..efe38bd8 100644 --- a/Yattee/Views/Settings/ImportPlaylistsView.swift +++ b/Yattee/Views/Settings/ImportPlaylistsView.swift @@ -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]