Browse Source

Handle "no" and remind user how to delete nand

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3626/head
crueter 1 week ago
parent
commit
f2f8c3f308
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 8
      src/yuzu/configuration/configure_per_game_addons.cpp

8
src/yuzu/configuration/configure_per_game_addons.cpp

@ -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."));

Loading…
Cancel
Save