mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T237, init DB caches from installer files
This commit is contained in:
@@ -866,12 +866,19 @@ namespace BlackCore
|
|||||||
new CWebDataServices(m_webReadersUsed, m_dbReaderConfig, {}, this)
|
new CWebDataServices(m_webReadersUsed, m_dbReaderConfig, {}, this)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// caches from local files (i.e. the files delivered)
|
||||||
|
if (this->isInstallerOptionSet())
|
||||||
|
{
|
||||||
|
msgs.push_back(m_webDataServices->initDbCachesFromLocalResourceFiles(false));
|
||||||
|
}
|
||||||
|
|
||||||
|
// watchdog
|
||||||
if (m_networkWatchDog)
|
if (m_networkWatchDog)
|
||||||
{
|
{
|
||||||
connect(m_webDataServices.data(), &CWebDataServices::swiftDbDataRead, m_networkWatchDog.data(), &CNetworkWatchdog::setDbAccessibility);
|
connect(m_webDataServices.data(), &CWebDataServices::swiftDbDataRead, m_networkWatchDog.data(), &CNetworkWatchdog::setDbAccessibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
emit webDataServicesStarted(true);
|
emit this->webDataServicesStarted(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user