fix: Remove noop statement

The timer interval is set from external (startUpdating)
This commit is contained in:
Lars Toenning
2025-06-09 15:02:49 +02:00
parent 5fe2c5c3dd
commit 43d66b0cd7
4 changed files with 3 additions and 4 deletions

View File

@@ -33,7 +33,6 @@ namespace swift::core::db
CBackgroundDataUpdater::CBackgroundDataUpdater(QObject *owner) : CContinuousWorker(owner, "Background data updater") CBackgroundDataUpdater::CBackgroundDataUpdater(QObject *owner) : CContinuousWorker(owner, "Background data updater")
{ {
connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundDataUpdater::doWork); connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundDataUpdater::doWork);
m_updateTimer.setInterval(60 * 1000);
if (sApp && sApp->hasWebDataServices()) if (sApp && sApp->hasWebDataServices())
{ {
connect(sApp->getWebDataServices()->getDatabaseWriter(), &CDatabaseWriter::publishedModelsSimplified, this, connect(sApp->getWebDataServices()->getDatabaseWriter(), &CDatabaseWriter::publishedModelsSimplified, this,

View File

@@ -45,4 +45,4 @@ namespace swift::core
}; };
} // namespace swift::core } // namespace swift::core
#endif // SWIFT_CORE_THREADED_READER_PERIODIC_H #endif // SWIFT_CORE_THREADED_READER_PERIODIC_H

View File

@@ -50,7 +50,8 @@ using namespace swift::core::data;
namespace swift::core::vatsim namespace swift::core::vatsim
{ {
CVatsimDataFileReader::CVatsimDataFileReader(QObject *owner) : CThreadedReaderPeriodic(owner, "CVatsimDataFileReader") CVatsimDataFileReader::CVatsimDataFileReader(QObject *owner)
: CThreadedReaderPeriodic(owner, "CVatsimDataFileReader")
{ {
this->reloadSettings(); this->reloadSettings();
} }

View File

@@ -25,7 +25,6 @@ namespace swift::misc::simulation
CBackgroundValidation::CBackgroundValidation(QObject *owner) : CContinuousWorker(owner, "Background validation") CBackgroundValidation::CBackgroundValidation(QObject *owner) : CContinuousWorker(owner, "Background validation")
{ {
connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundValidation::doWork); connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundValidation::doWork);
m_updateTimer.setInterval(60 * 1000);
} }
void CBackgroundValidation::setCurrentSimulator(const CSimulatorInfo &simulator, const QString &simDirectory, void CBackgroundValidation::setCurrentSimulator(const CSimulatorInfo &simulator, const QString &simDirectory,