GH-93 add an option to not copy saves on instance copy
This commit is contained in:
parent
4fbcb3efb9
commit
44db72ead5
10 changed files with 138 additions and 60 deletions
|
@ -1090,7 +1090,7 @@ InstancePtr MainWindow::instanceFromZipPack(QString instName, QString instGroup,
|
|||
CustomMessageBox::selectable(this, tr("Error"), tr("Archive does not contain instance.cfg"))->show();
|
||||
return nullptr;
|
||||
}
|
||||
if (!FS::copyPath(instanceCfgFile.absoluteDir().absolutePath(), instDir))
|
||||
if (!FS::copy(instanceCfgFile.absoluteDir().absolutePath(), instDir)())
|
||||
{
|
||||
CustomMessageBox::selectable(this, tr("Error"), tr("Unable to copy instance"))->show();
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue