diff options
author | flow <flowlnlnln@gmail.com> | 2022-06-11 14:31:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 14:31:50 -0300 |
commit | 37160f973f1d2fed450f40f38a55b8445787c4bd (patch) | |
tree | 01aca5fc0f10c74046de611a76e53ec2b5bf5935 /launcher | |
parent | 29e5a213a5be2d3716018b64241ac030ca2b0af5 (diff) | |
download | PrismLauncher-37160f973f1d2fed450f40f38a55b8445787c4bd.tar.gz PrismLauncher-37160f973f1d2fed450f40f38a55b8445787c4bd.tar.bz2 PrismLauncher-37160f973f1d2fed450f40f38a55b8445787c4bd.zip |
fix: account for the dequeued url when checking the number of urls
Co-authored-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/InstanceImportTask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/InstanceImportTask.cpp b/launcher/InstanceImportTask.cpp index 1498db6f..d5684805 100644 --- a/launcher/InstanceImportTask.cpp +++ b/launcher/InstanceImportTask.cpp @@ -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]{ |