mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
remove followSymlinks calls (#4650)
This commit is contained in:
commit
6809d46ab6
2 changed files with 2 additions and 4 deletions
|
|
@ -64,7 +64,6 @@ void InstanceCopyTask::executeTask()
|
|||
|
||||
savesCopy = std::make_unique<FS::copy>(FS::PathCombine(m_origInstance->gameRoot(), "saves"),
|
||||
FS::PathCombine(staging_mc_dir, "saves"));
|
||||
savesCopy->followSymlinks(true);
|
||||
(*savesCopy)(true);
|
||||
setProgress(0, savesCopy->totalCopied());
|
||||
connect(savesCopy.get(), &FS::copy::fileCopied, [this](QString src) { setProgress(m_progress + 1, m_progressTotal); });
|
||||
|
|
@ -126,11 +125,11 @@ void InstanceCopyTask::executeTask()
|
|||
return !there_were_errors;
|
||||
}
|
||||
FS::copy folderCopy(m_origInstance->instanceRoot(), m_stagingPath);
|
||||
folderCopy.followSymlinks(false).matcher(m_matcher);
|
||||
folderCopy.matcher(m_matcher);
|
||||
|
||||
folderCopy(true);
|
||||
setProgress(0, folderCopy.totalCopied());
|
||||
connect(&folderCopy, &FS::copy::fileCopied, [this](QString src) { setProgress(m_progress + 1, m_progressTotal); });
|
||||
connect(&folderCopy, &FS::copy::fileCopied, [this]() { setProgress(m_progress + 1, m_progressTotal); });
|
||||
return folderCopy();
|
||||
});
|
||||
connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &InstanceCopyTask::copyFinished);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue