From 555b2508a5a34798059af7e128f6f32fc34a4947 Mon Sep 17 00:00:00 2001
From: isanae <14251494+isanae@users.noreply.github.com>
Date: Thu, 23 Jul 2020 03:39:52 -0400
Subject: rewrote the delete instance dialog text
---
src/instancemanager.cpp | 39 +++++++++++++++++++++------------------
1 file changed, 21 insertions(+), 18 deletions(-)
(limited to 'src/instancemanager.cpp')
diff --git a/src/instancemanager.cpp b/src/instancemanager.cpp
index 3821495b..46936444 100644
--- a/src/instancemanager.cpp
+++ b/src/instancemanager.cpp
@@ -169,24 +169,27 @@ bool InstanceManager::deleteLocalInstance(const QString& instanceId) const
QString InstanceManager::manageInstances(const QStringList &instanceList) const
{
- SelectionDialog selection(
- QString("
%1
%2")
- .arg(QObject::tr("Choose Instance to Delete"))
- .arg(QObject::tr("Be Careful! Deleting an Instance will remove all your files for that Instance (mods, downloads, profiles, configuration, ...). Custom paths outside of the instance folder for downloads, mods, etc. will be left untoched.")),
- nullptr);
- for (const QString &instance : instanceList)
- {
- selection.addChoice(QIcon(":/MO/gui/multiply_red"), instance, "", instance);
- }
-
- if (selection.exec() == QDialog::Rejected) {
- return(chooseInstance(instances()));
- }
- else {
- QString choice = selection.getChoiceData().toString();
- deleteLocalInstance(choice);
- }
- return(manageInstances(instances()));
+ SelectionDialog selection(QString("%1
%2")
+ .arg(QObject::tr("Select an instance to delete"))
+ .arg(QObject::tr(
+ "Deleting an instance will delete all the mods, downloads, profiles "
+ "(including profile-specific saves) and anything in the overwrite "
+ "folder.
"
+ "Custom paths outside of the instance folder will not be deleted.")));
+
+ for (const QString &instance : instanceList) {
+ selection.addChoice(QIcon(":/MO/gui/multiply_red"), instance, "", instance);
+ }
+
+ if (selection.exec() == QDialog::Rejected) {
+ return (chooseInstance(instances()));
+ }
+ else {
+ QString choice = selection.getChoiceData().toString();
+ deleteLocalInstance(choice);
+ }
+
+ return(manageInstances(instances()));
}
QString InstanceManager::queryInstanceName(const QStringList &instanceList) const
--
cgit v1.3.1