GH-336 Rename directories on instance rename

This commit is contained in:
janrupf
2019-06-17 21:58:23 +02:00
committed by Petr Mrázek
parent ce12f1a734
commit 9d6ad3d78a
10 changed files with 49 additions and 11 deletions

View File

@@ -293,7 +293,7 @@ void InstanceImportTask::processFlame()
// nuke the original files
FS::deletePath(jarmodsPath);
}
instance.setName(m_instName);
instance.setName(m_instName, false);
m_modIdResolver.reset(new Flame::FileResolvingTask(pack));
connect(m_modIdResolver.get(), &Flame::FileResolvingTask::succeeded, [&]()
{
@@ -384,7 +384,7 @@ void InstanceImportTask::processMultiMC()
instance.resetTimePlayed();
// set a new nice name
instance.setName(m_instName);
instance.setName(m_instName, false);
// if the icon was specified by user, use that. otherwise pull icon from the pack
if (m_instIcon != "default")