diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-23 03:39:52 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-03 11:39:03 -0500 |
| commit | 555b2508a5a34798059af7e128f6f32fc34a4947 (patch) | |
| tree | 4e0685d2e8eab7f3061f8e8dfbc4670606a83e91 /src/instancemanager.cpp | |
| parent | 3761ac84b586669b08657d67a6d170009a96795f (diff) | |
rewrote the delete instance dialog text
Diffstat (limited to 'src/instancemanager.cpp')
| -rw-r--r-- | src/instancemanager.cpp | 37 |
1 files changed, 20 insertions, 17 deletions
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("<h3>%1</h3><br>%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); - } + SelectionDialog selection(QString("<h3>%1</h3><br>%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.<br><br>" + "Custom paths outside of the instance folder will not be deleted."))); - if (selection.exec() == QDialog::Rejected) { - return(chooseInstance(instances())); - } - else { - QString choice = selection.getChoiceData().toString(); - deleteLocalInstance(choice); - } - return(manageInstances(instances())); + 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 |
