PrismLauncher/launcher/ui/dialogs/UpdateCheckFailedDialog.cpp
Dylan Schooner 55dc9e6a84 Add optionCheckBox to ScrollMessageBox ui
Add 'Disable unavailable mods' option on check update failure

Signed-off-by: Dylan Schooner <dschooner05@gmail.com>
2025-11-10 03:24:00 -05:00

13 lines
No EOL
556 B
C++

#include "UpdateCheckFailedDialog.h"
#include "ui_ScrollMessageBox.h"
UpdateCheckFailedDialog::UpdateCheckFailedDialog(QWidget* parent, const QString& body)
: ScrollMessageBox(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?"),
body)
{
ui->optionCheckBox->setVisible(true);
ui->optionCheckBox->setText(tr("Disable unavailable mods"));
}