mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T177, added direct write flag because only direct writes require a consolidation
This commit is contained in:
@@ -156,11 +156,12 @@ namespace BlackCore
|
||||
return true;
|
||||
}
|
||||
|
||||
void CBackgroundDataUpdater::onModelsPublished(const CAircraftModelList &modelsPublished)
|
||||
void CBackgroundDataUpdater::onModelsPublished(const CAircraftModelList &modelsPublished, bool directWrite)
|
||||
{
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
if (modelsPublished.isEmpty()) { return; }
|
||||
if (!m_updatePublishedModels) { return; }
|
||||
if (!directWrite) { return; } // those models are CRs and have to be released first
|
||||
|
||||
emit this->consolidating(true);
|
||||
this->syncModelOrModelSetCacheWithDbData(m_modelCaches, modelsPublished);
|
||||
|
||||
Reference in New Issue
Block a user