GH-3467 fix stall-out in ScanModFolders when the folders don't exist
This commit is contained in:
parent
0c98589a7f
commit
84c673c5ba
1 changed files with 7 additions and 2 deletions
|
@ -27,11 +27,16 @@ void ScanModFolders::executeTask()
|
|||
|
||||
auto loaders = m_inst->loaderModList();
|
||||
connect(loaders.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::modsDone);
|
||||
loaders->update();
|
||||
if(!loaders->update()) {
|
||||
m_modsDone = true;
|
||||
}
|
||||
|
||||
auto cores = m_inst->coreModList();
|
||||
connect(cores.get(), &ModFolderModel::updateFinished, this, &ScanModFolders::coreModsDone);
|
||||
cores->update();
|
||||
if(!cores->update()) {
|
||||
m_coreModsDone = true;
|
||||
}
|
||||
checkDone();
|
||||
}
|
||||
|
||||
void ScanModFolders::modsDone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue