diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index a45717a..aa2133e 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -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);