mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
GH-3467 fix stall-out in ScanModFolders when the folders don't exist
This commit is contained in:
parent
0c98589a7f
commit
84c673c5ba
@ -27,11 +27,16 @@ void ScanModFolders::executeTask()
|
|||||||
|
|
||||||
auto loaders = m_inst->loaderModList();
|
auto loaders = m_inst->loaderModList();
|
||||||
connect(loaders.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::modsDone);
|
connect(loaders.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::modsDone);
|
||||||
loaders->update();
|
if(!loaders->update()) {
|
||||||
|
m_modsDone = true;
|
||||||
|
}
|
||||||
|
|
||||||
auto cores = m_inst->coreModList();
|
auto cores = m_inst->coreModList();
|
||||||
connect(cores.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::coreModsDone);
|
connect(cores.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::coreModsDone);
|
||||||
cores->update();
|
if(!cores->update()) {
|
||||||
|
m_coreModsDone = true;
|
||||||
|
}
|
||||||
|
checkDone();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScanModFolders::modsDone()
|
void ScanModFolders::modsDone()
|
||||||
|
Loading…
Reference in New Issue
Block a user