mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
remove some QEventLoops
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -1047,10 +1047,10 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
||||
|
||||
switch (type) {
|
||||
case PackedResourceType::ResourcePack:
|
||||
minecraftInst->resourcePackList()->installResource(localFileName);
|
||||
minecraftInst->resourcePackList()->installResourceWithFlameMetadata(localFileName, version);
|
||||
break;
|
||||
case PackedResourceType::TexturePack:
|
||||
minecraftInst->texturePackList()->installResource(localFileName);
|
||||
minecraftInst->texturePackList()->installResourceWithFlameMetadata(localFileName, version);
|
||||
break;
|
||||
case PackedResourceType::DataPack:
|
||||
qWarning() << "Importing of Data Packs not supported at this time. Ignoring" << localFileName;
|
||||
@ -1059,7 +1059,7 @@ void MainWindow::processURLs(QList<QUrl> urls)
|
||||
minecraftInst->loaderModList()->installResourceWithFlameMetadata(localFileName, version);
|
||||
break;
|
||||
case PackedResourceType::ShaderPack:
|
||||
minecraftInst->shaderPackList()->installResource(localFileName);
|
||||
minecraftInst->shaderPackList()->installResourceWithFlameMetadata(localFileName, version);
|
||||
break;
|
||||
case PackedResourceType::WorldSave:
|
||||
minecraftInst->worldList()->installWorld(localFileInfo);
|
||||
|
Reference in New Issue
Block a user