remove requirement to hold ctrl, remove puzzle

This commit is contained in:
rootdarkarchon
2022-11-26 22:19:09 +01:00
parent 9bdbd1c3fa
commit fafb103ce2
9 changed files with 31 additions and 187 deletions

View File

@@ -56,6 +56,7 @@ public partial class ApiController
Logger.Warn("Could not set download progress for " + hash);
Logger.Warn(ex.Message);
Logger.Warn(ex.StackTrace ?? string.Empty);
wc.CancelAsync();
}
};
wc.DownloadProgressChanged += progChanged;
@@ -131,7 +132,6 @@ public partial class ApiController
{
File.Delete(tempFile);
Logger.Debug("Detected cancellation, removing " + currentDownloadId);
DownloadFinished?.Invoke();
CancelDownload(currentDownloadId);
return;
}