fix: account for the dequeued url when checking the number of urls

Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
flow 2022-06-11 14:31:50 -03:00 committed by GitHub
parent 29e5a213a5
commit 37160f973f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -748,7 +748,7 @@ void InstanceImportTask::processModrinth()
dl->addValidator(new Net::ChecksumValidator(file.hashAlgorithm, file.hash));
m_filesNetJob->addNetAction(dl);
if (file.downloads.size() > 1) {
if (file.downloads.size() > 0) {
// FIXME: This really needs to be put into a ConcurrentTask of
// MultipleOptionsTask's , once those exist :)
connect(dl.get(), &NetAction::failed, [this, &file, path, dl]{