Fixed bug where if using download-only mode, downloading additonal videos would be blocked

This commit is contained in:
Isaac Grynsztein
2020-03-25 04:16:11 -04:00
parent 1808281b50
commit 1ed415d733

View File

@@ -691,6 +691,9 @@ export class MainComponent implements OnInit {
}
removeDownloadFromCurrentDownloads(download_to_remove) {
if (this.current_download === download_to_remove) {
this.current_download = null;
}
const index = this.downloads.indexOf(download_to_remove);
if (index !== -1) {
this.downloads.splice(index, 1);