mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
Merge pull request #4106 from jamierocks/fix-4055
GH-4055 Don't download multiple files to the same path
This commit is contained in:
commit
d2a44effb5
1 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,10 @@ void PackInstallTask::downloadPack()
|
|||
auto relpath = FS::PathCombine("minecraft", file.path, file.name);
|
||||
auto path = FS::PathCombine(m_stagingPath, relpath);
|
||||
|
||||
if (filesToCopy.contains(entry->getFullPath())) {
|
||||
qWarning() << "Ignoring" << file.url << "as a file of that path is already downloading.";
|
||||
continue;
|
||||
}
|
||||
qDebug() << "Will download" << file.url << "to" << path;
|
||||
filesToCopy[entry->getFullPath()] = path;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue