Fixed bug where cancelling all downloads didn't actually remove failed downloads

This commit is contained in:
Sumner Evans
2020-06-04 00:22:55 -06:00
parent 46ebaa589e
commit 8cff27768b

View File

@@ -221,6 +221,8 @@ class MainWindow(Gtk.ApplicationWindow):
# The download is no longer pending.
if song_id in self._pending_downloads:
self._pending_downloads.remove(song_id)
if song_id in self._failed_downloads:
self._failed_downloads.remove(song_id)
elif progress.type == DownloadProgress.Type.ERROR:
self._failed_downloads.add(song_id)
self.current_downloads_box.remove(self._current_download_boxes[song_id])