Pass option as constructor parameter

Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
This commit is contained in:
Dylan Schooner 2025-11-10 04:52:26 -05:00
parent 55dc9e6a84
commit 11a2ba63b3
6 changed files with 12 additions and 30 deletions

View file

@ -5,7 +5,6 @@
#include "ProgressDialog.h"
#include "ScrollMessageBox.h"
#include "StringUtils.h"
#include "UpdateCheckFailedDialog.h"
#include "minecraft/mod/tasks/GetModDependenciesTask.h"
#include "modplatform/ModIndex.h"
#include "modplatform/flame/FlameAPI.h"
@ -176,7 +175,10 @@ void ResourceUpdateDialog::checkCandidates()
text += "<br>";
}
UpdateCheckFailedDialog message_dialog(m_parent, text);
ScrollMessageBox message_dialog(m_parent, tr("Failed to check for updates"),
tr("Could not check or get the following resources for updates:<br>"
"Do you wish to proceed without those resources?"),
text, "Disable unavailable mods");
message_dialog.setModal(true);
if (message_dialog.exec() == QDialog::Rejected) {
m_aborted = true;
@ -184,7 +186,7 @@ void ResourceUpdateDialog::checkCandidates()
return;
}
// Disable incompatible mods
// Disable unavailable mods
if (message_dialog.isOptionChecked()) {
for (const auto& failed : m_failedCheckUpdate) {
const auto& mod = std::get<0>(failed);