mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T28, allow to set updater to really show if it is "on"
This commit is contained in:
committed by
Mathew Sutcliffe
parent
e7e984227b
commit
0fd3857b87
@@ -13,6 +13,7 @@
|
||||
#include "blackgui/components/datamaininfoareacomponent.h"
|
||||
#include "blackgui/components/dbmappingcomponent.h"
|
||||
#include "blackgui/components/logcomponent.h"
|
||||
#include "blackgui/components/datasettingscomponent.h"
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackgui/stylesheetutility.h"
|
||||
#include "blackmisc/loghandler.h"
|
||||
@@ -160,6 +161,7 @@ void CSwiftData::consolidationSettingChanged()
|
||||
{
|
||||
if (m_updater)
|
||||
{
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(nullptr);
|
||||
m_updater->gracefulShutdown();
|
||||
m_updater.reset(nullptr);
|
||||
}
|
||||
@@ -170,6 +172,7 @@ void CSwiftData::consolidationSettingChanged()
|
||||
{
|
||||
m_updater.reset(new CBackgroundDataUpdater(this));
|
||||
m_updater->start(QThread::LowestPriority);
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(m_updater.data());
|
||||
}
|
||||
m_updater->startUpdating(consolidationSecs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user