mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-06 21:36:58 +03:00
add cancel to confirm disable dialog
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
3b3e246501
commit
fcc557a79d
2 changed files with 6 additions and 2 deletions
|
|
@ -145,11 +145,14 @@ void ModFolderPage::removeItems(const QItemSelection& selection)
|
|||
tr("The mods you are trying to delete are required by %1 mods.\n"
|
||||
"Do you want to disable them?")
|
||||
.arg(affected.length()),
|
||||
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
|
||||
QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel,
|
||||
QMessageBox::Cancel)
|
||||
->exec();
|
||||
|
||||
if (response != QMessageBox::Yes) {
|
||||
m_model->setResourceEnabled(affected, EnableAction::DISABLE);
|
||||
} else if (response != QMessageBox::Cancel) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_model->deleteResources(indexes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue