remove some QEventLoops
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
02b6afe3d5
commit
8f8c8394dc
12 changed files with 73 additions and 130 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue