mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 18:04:14 +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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -612,11 +612,11 @@ namespace BlackCore
|
|||||||
CWebReaderFlags::WebReader m_webReadersUsed; //!< Readers to be used
|
CWebReaderFlags::WebReader m_webReadersUsed; //!< Readers to be used
|
||||||
Db::CDatabaseReaderConfigList m_dbReaderConfig; //!< Load or used caching?
|
Db::CDatabaseReaderConfigList m_dbReaderConfig; //!< Load or used caching?
|
||||||
std::atomic<bool> m_shutdown { false }; //!< is being shutdown?
|
std::atomic<bool> m_shutdown { false }; //!< is being shutdown?
|
||||||
bool m_useContexts = false; //!< use contexts
|
bool m_useContexts = false; //!< use contexts
|
||||||
bool m_useWebData = false; //!< use web data
|
bool m_useWebData = false; //!< use web data
|
||||||
bool m_signalStartup = true; //!< signal startup automatically
|
bool m_signalStartup = true; //!< signal startup automatically
|
||||||
bool m_devFlag = false; //!< dev. environment
|
bool m_devFlag = false; //!< dev. environment
|
||||||
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown
|
bool m_saveSettingsOnShutdown = true; //!< saving all settings on shutdown
|
||||||
|
|
||||||
// -------------- crashpad -----------------
|
// -------------- crashpad -----------------
|
||||||
BlackMisc::CStatusMessageList initCrashHandler();
|
BlackMisc::CStatusMessageList initCrashHandler();
|
||||||
|
|||||||
Reference in New Issue
Block a user