diff options
author | timoreo22 <timo.oreo34@gmail.com> | 2022-02-26 07:33:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 07:33:11 +0100 |
commit | ae354688c96927e95db8c06c53ada0b5d7e77f26 (patch) | |
tree | 5d864de33438ce4d82af03928b3d632f055a0490 /launcher/ui/pages/instance/ModFolderPage.cpp | |
parent | 27f37315f84536d75d95bc1879e8a4513fcfc831 (diff) | |
parent | c4f4e9e620ee4a7094542190bc18cc167d00a7ff (diff) | |
download | PrismLauncher-ae354688c96927e95db8c06c53ada0b5d7e77f26.tar.gz PrismLauncher-ae354688c96927e95db8c06c53ada0b5d7e77f26.tar.bz2 PrismLauncher-ae354688c96927e95db8c06c53ada0b5d7e77f26.zip |
Merge pull request #193 from flowln/develop
Allow for downloading multiple mods at once
Diffstat (limited to 'launcher/ui/pages/instance/ModFolderPage.cpp')
-rw-r--r-- | launcher/ui/pages/instance/ModFolderPage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/launcher/ui/pages/instance/ModFolderPage.cpp b/launcher/ui/pages/instance/ModFolderPage.cpp index 494d32f0..b342accf 100644 --- a/launcher/ui/pages/instance/ModFolderPage.cpp +++ b/launcher/ui/pages/instance/ModFolderPage.cpp @@ -365,8 +365,7 @@ void ModFolderPage::on_actionInstall_mods_triggered() } ModDownloadDialog mdownload(m_mods, this, m_inst); if(mdownload.exec()) { - ModDownloadTask *task = mdownload.getTask(); - if (task) { + for(auto task : mdownload.getTasks()){ connect(task, &Task::failed, [this, task](QString reason) { task->deleteLater(); CustomMessageBox::selectable(this, tr("Error"), reason, QMessageBox::Critical)->show(); |