mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
fix: Remove noop statement
The timer interval is set from external (startUpdating)
This commit is contained in:
@@ -33,7 +33,6 @@ namespace swift::core::db
|
||||
CBackgroundDataUpdater::CBackgroundDataUpdater(QObject *owner) : CContinuousWorker(owner, "Background data updater")
|
||||
{
|
||||
connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundDataUpdater::doWork);
|
||||
m_updateTimer.setInterval(60 * 1000);
|
||||
if (sApp && sApp->hasWebDataServices())
|
||||
{
|
||||
connect(sApp->getWebDataServices()->getDatabaseWriter(), &CDatabaseWriter::publishedModelsSimplified, this,
|
||||
|
||||
@@ -45,4 +45,4 @@ namespace swift::core
|
||||
};
|
||||
} // namespace swift::core
|
||||
|
||||
#endif // SWIFT_CORE_THREADED_READER_PERIODIC_H
|
||||
#endif // SWIFT_CORE_THREADED_READER_PERIODIC_H
|
||||
|
||||
@@ -50,7 +50,8 @@ using namespace swift::core::data;
|
||||
|
||||
namespace swift::core::vatsim
|
||||
{
|
||||
CVatsimDataFileReader::CVatsimDataFileReader(QObject *owner) : CThreadedReaderPeriodic(owner, "CVatsimDataFileReader")
|
||||
CVatsimDataFileReader::CVatsimDataFileReader(QObject *owner)
|
||||
: CThreadedReaderPeriodic(owner, "CVatsimDataFileReader")
|
||||
{
|
||||
this->reloadSettings();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace swift::misc::simulation
|
||||
CBackgroundValidation::CBackgroundValidation(QObject *owner) : CContinuousWorker(owner, "Background validation")
|
||||
{
|
||||
connect(&m_updateTimer, &QTimer::timeout, this, &CBackgroundValidation::doWork);
|
||||
m_updateTimer.setInterval(60 * 1000);
|
||||
}
|
||||
|
||||
void CBackgroundValidation::setCurrentSimulator(const CSimulatorInfo &simulator, const QString &simDirectory,
|
||||
|
||||
Reference in New Issue
Block a user