|
|
@ -208,7 +208,9 @@ void ConfigurePerGameAddons::AddonDeleteRequested(QList<QModelIndex> selected) { |
|
|
|
|
|
|
|
|
if (filtered.empty()) { |
|
|
if (filtered.empty()) { |
|
|
QtCommon::Frontend::Critical(tr("Invalid Selection"), |
|
|
QtCommon::Frontend::Critical(tr("Invalid Selection"), |
|
|
tr("Only mods, cheats, and patches can be deleted.")); |
|
|
|
|
|
|
|
|
tr("Only mods, cheats, and patches can be deleted.\nTo delete " |
|
|
|
|
|
"NAND-installed updates, right-click the game in the game " |
|
|
|
|
|
"list and click Remove -> Remove Installed Update.")); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -228,11 +230,11 @@ void ConfigurePerGameAddons::AddonDeleteRequested(QList<QModelIndex> selected) { |
|
|
QtCommon::Frontend::StandardButton::Yes | |
|
|
QtCommon::Frontend::StandardButton::Yes | |
|
|
QtCommon::Frontend::StandardButton::No); |
|
|
QtCommon::Frontend::StandardButton::No); |
|
|
|
|
|
|
|
|
if (choice == QtCommon::Frontend::StandardButton::Yes) { |
|
|
|
|
|
|
|
|
if (choice == QtCommon::Frontend::StandardButton::No) return; |
|
|
|
|
|
|
|
|
for (const QModelIndex &index : filtered) { |
|
|
for (const QModelIndex &index : filtered) { |
|
|
std::filesystem::remove_all(index.data(PATCH_LOCATION).toString().toStdString()); |
|
|
std::filesystem::remove_all(index.data(PATCH_LOCATION).toString().toStdString()); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QtCommon::Frontend::Information(tr("Successfully deleted"), |
|
|
QtCommon::Frontend::Information(tr("Successfully deleted"), |
|
|
tr("Successfully deleted all selected mods.")); |
|
|
tr("Successfully deleted all selected mods.")); |
|
|
|