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>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user