aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceList.cpp
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-09-11 13:16:25 -0300
committerflow <flowlnlnln@gmail.com>2022-09-20 18:36:10 -0300
commit06019f01e3e7b87e752ddc15deb850e272a82d21 (patch)
tree45b1e4783760902d0d771a2cf27f049b2f61493d /launcher/InstanceList.cpp
parentddde885084a8eba61e691974edbc75186438ed55 (diff)
downloadPrismLauncher-06019f01e3e7b87e752ddc15deb850e272a82d21.tar.gz
PrismLauncher-06019f01e3e7b87e752ddc15deb850e272a82d21.tar.bz2
PrismLauncher-06019f01e3e7b87e752ddc15deb850e272a82d21.zip
feat: add dialog to ask whether to chaneg instance's name
This prevents custom names from being lost when updating, by only changing the name if the old instance name constains the old version, so that we can update it if the user whishes to. Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/InstanceList.cpp')
-rw-r--r--launcher/InstanceList.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp
index a414e0d5..47b0e75a 100644
--- a/launcher/InstanceList.cpp
+++ b/launcher/InstanceList.cpp
@@ -908,11 +908,6 @@ bool InstanceList::commitStagedInstance(QString path, InstanceName const& instan
qWarning() << "Failed to override" << path << "to" << destination;
return false;
}
-
- if (!inst)
- inst = getInstanceById(instID);
- if (inst)
- inst->setName(instanceName.name());
} else {
if (!dir.rename(path, destination)) {
qWarning() << "Failed to move" << path << "to" << destination;