mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refactor: Move installer flag handling to launcher
This is only used by the launcher
This commit is contained in:
@@ -872,18 +872,6 @@ namespace BlackCore
|
||||
new CWebDataServices(m_webReadersUsed, m_dbReaderConfig, {}, this));
|
||||
Q_ASSERT_X(m_webDataServices, Q_FUNC_INFO, "Missing web services");
|
||||
|
||||
// caches from local files (i.e. the files delivered)
|
||||
if (this->isInstallerOptionSet())
|
||||
{
|
||||
const QDateTime ts = m_webDataServices->getLatestDbEntityCacheTimestamp();
|
||||
if (!ts.isValid() || ts < QDateTime::currentDateTimeUtc().addYears(-2))
|
||||
{
|
||||
// we only init, if there are:
|
||||
// a) no cache timestamps b) or it was not updated for some years
|
||||
msgs.push_back(m_webDataServices->initDbCachesFromLocalResourceFiles(false));
|
||||
}
|
||||
}
|
||||
|
||||
// watchdog
|
||||
if (m_networkWatchDog)
|
||||
{
|
||||
@@ -1251,11 +1239,6 @@ namespace BlackCore
|
||||
return m_parser.isSet(option);
|
||||
}
|
||||
|
||||
bool CApplication::isInstallerOptionSet() const
|
||||
{
|
||||
return this->isParserOptionSet("installer");
|
||||
}
|
||||
|
||||
bool CApplication::skipSingleApplicationCheck() const
|
||||
{
|
||||
return this->isParserOptionSet(m_cmdSkipSingleApp);
|
||||
|
||||
Reference in New Issue
Block a user