aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-08-20 12:50:01 +0200
committerGitHub <noreply@github.com>2022-08-20 12:50:01 +0200
commit70a8f6743a99a72a68ede1a63f66100749d4d106 (patch)
tree5e91921a77e121b8ccc76262d0e9132c34e36d63 /launcher/modplatform
parent69eafd0e115a4d6366ac9dbe5dca80986154b975 (diff)
parent9c105914f0ffa4517b8777c77bf27ca3dfac5492 (diff)
downloadPrismLauncher-70a8f6743a99a72a68ede1a63f66100749d4d106.tar.gz
PrismLauncher-70a8f6743a99a72a68ede1a63f66100749d4d106.tar.bz2
PrismLauncher-70a8f6743a99a72a68ede1a63f66100749d4d106.zip
Merge pull request #919 from kumquat-ir/download-all-blocked
Diffstat (limited to 'launcher/modplatform')
-rw-r--r--launcher/modplatform/modpacksch/FTBPackInstallTask.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
index 16013070..3c15667c 100644
--- a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
+++ b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
@@ -48,7 +48,7 @@
#include "Application.h"
#include "BuildConfig.h"
-#include "ui/dialogs/ScrollMessageBox.h"
+#include "ui/dialogs/BlockedModsDialog.h"
namespace ModpacksCH {
@@ -173,6 +173,7 @@ void PackInstallTask::onResolveModsSucceeded()
m_abortable = false;
QString text;
+ QList<QUrl> urls;
auto anyBlocked = false;
Flame::Manifest results = m_mod_id_resolver_task->getResults();
@@ -190,6 +191,7 @@ void PackInstallTask::onResolveModsSucceeded()
type[0] = type[0].toUpper();
text += QString("%1: %2 - <a href='%3'>%3</a><br/>").arg(type, local_file.name, results_file.websiteUrl);
+ urls.append(QUrl(results_file.websiteUrl));
anyBlocked = true;
} else {
local_file.url = results_file.url.toString();
@@ -201,10 +203,11 @@ void PackInstallTask::onResolveModsSucceeded()
if (anyBlocked) {
qDebug() << "Blocked files found, displaying file list";
- auto message_dialog = new ScrollMessageBox(m_parent, tr("Blocked files found"),
+ auto message_dialog = new BlockedModsDialog(m_parent, tr("Blocked files found"),
tr("The following files are not available for download in third party launchers.<br/>"
"You will need to manually download them and add them to the instance."),
- text);
+ text,
+ urls);
if (message_dialog->exec() == QDialog::Accepted)
downloadPack();