logic: Fix indexing progress dialog not updated when fetching storage

This commit is contained in:
Eberhard Graether
2017-05-10 15:52:24 +02:00
parent 2136e30a48
commit 960ca6703e
2 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -117,7 +117,10 @@ Task::TaskState TaskBuildIndex::doUpdate(std::shared_ptr<Blackboard> blackboard)
return STATE_FAILURE;
}
fetchIntermediateStorages(blackboard);
if (fetchIntermediateStorages(blackboard))
{
updateIndexingDialog(blackboard, FilePath());
}
const int SLEEP_TIME_MS = 50;
std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_TIME_MS));