add a hopeless state for a download where all sources are hopeless

This commit is contained in:
Zlatin Balevsky
2020-09-23 14:17:40 +01:00
parent 140231e362
commit 964e315367
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Downloader {
}
getPauseResumeRetryBlock() {
if (this.state == "FINISHED" || this.state == "CANCELLED")
if (this.state == "FINISHED" || this.state == "CANCELLED" || this.state == "HOPELESS")
return ""
if (this.state == "FAILED") {
var retryLink = new Link(_t("Retry"), "resumeDownload", [this.infoHash])