diff options
author | kumquat-ir <66188216+kumquat-ir@users.noreply.github.com> | 2022-07-31 15:05:47 -0400 |
---|---|---|
committer | kumquat-ir <66188216+kumquat-ir@users.noreply.github.com> | 2022-07-31 15:05:47 -0400 |
commit | 9c105914f0ffa4517b8777c77bf27ca3dfac5492 (patch) | |
tree | fbd6e59b00048623b8d893a7a64015eb2a262876 | |
parent | 579582740e9efd5a054b02a8b0e1d8999abfa6fa (diff) | |
download | PrismLauncher-9c105914f0ffa4517b8777c77bf27ca3dfac5492.tar.gz PrismLauncher-9c105914f0ffa4517b8777c77bf27ca3dfac5492.tar.bz2 PrismLauncher-9c105914f0ffa4517b8777c77bf27ca3dfac5492.zip |
use BlockedModsDialog for ftb packs as well
Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
-rw-r--r-- | launcher/modplatform/modpacksch/FTBPackInstallTask.cpp | 9 |
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(); |