From 9af1b00df52d974a53925345efcd5c047b7d041c Mon Sep 17 00:00:00 2001
From: Rachel Powers <508861+Ryex@users.noreply.github.com>
Date: Fri, 11 Nov 2022 18:05:19 -0700
Subject: feat: add list of watched folders move explanation text into dialog
class and it's own label
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
---
launcher/modplatform/flame/FlameInstanceCreationTask.cpp | 11 ++++-------
launcher/modplatform/modpacksch/FTBPackInstallTask.cpp | 15 +++++----------
2 files changed, 9 insertions(+), 17 deletions(-)
(limited to 'launcher/modplatform')
diff --git a/launcher/modplatform/flame/FlameInstanceCreationTask.cpp b/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
index 4b9e7b86..91554b58 100644
--- a/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
+++ b/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
@@ -393,13 +393,10 @@ void FlameCreationTask::idResolverSucceeded(QEventLoop& loop)
qWarning() << "Blocked mods found, displaying mod list";
auto message_dialog = new BlockedModsDialog(m_parent, tr("Blocked mods found"),
- tr("The following files are not available for download in third party launchers.
"
- "You will need to manually download them and add them to the instance.
"
- "Your configured global mods folder and default downloads folder
"
- "are automatically checked for the downloaded mods and they will be copied to the instance if found.
"
- "Optionally, you may drag and drop the downloaded mods onto this dialog or add a folder to watch
"
- "if you did not download the mods to a default location."),
- blocked_mods);
+ tr("The following files are not available for download in third party launchers.
"
+ "You will need to manually download them and add them to the instance."),
+ blocked_mods);
+
message_dialog->setModal(true);
if (message_dialog->exec()) {
diff --git a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
index 26d0c5a1..4c7b7a4f 100644
--- a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
+++ b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp
@@ -211,22 +211,17 @@ void PackInstallTask::onResolveModsSucceeded()
qDebug() << "Blocked files found, displaying file list";
auto message_dialog = new BlockedModsDialog(m_parent, tr("Blocked files found"),
- tr("The following files are not available for download in third party launchers.
"
- "You will need to manually download them and add them to the instance.
"
- "Your configured global mods folder and default downloads folder
"
- "are automatically checked for the downloaded mods and they will be copied to the instance if found.
"
- "Optionally, you may drag and drop the downloaded mods onto this dialog or add a folder to watch
"
- "if you did not download the mods to a default location."),
- m_blocked_mods);
+ tr("The following files are not available for download in third party launchers.
"
+ "You will need to manually download them and add them to the instance."),
+ m_blocked_mods);
if (message_dialog->exec() == QDialog::Accepted) {
qDebug() << "Post dialog blocked mods list: " << m_blocked_mods;
createInstance();
- }
- else {
+ } else {
abort();
}
-
+
} else {
createInstance();
}
--
cgit