GH-3467 fix stall-out in ScanModFolders when the folders don't exist

This commit is contained in:
Petr Mrázek 2021-03-10 03:57:36 +01:00
parent 0c98589a7f
commit 84c673c5ba

View File

@ -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()