mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Ref T164, show (by LED) when consolidating data
* added LED in info bar * signal in background updater and * connecting them
This commit is contained in:
@@ -161,6 +161,7 @@ void CSwiftData::consolidationSettingChanged()
|
||||
if (m_updater)
|
||||
{
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(nullptr);
|
||||
disconnect(m_updater.data());
|
||||
m_updater->abandonAndWait();
|
||||
m_updater = nullptr;
|
||||
}
|
||||
@@ -170,6 +171,7 @@ void CSwiftData::consolidationSettingChanged()
|
||||
if (!m_updater)
|
||||
{
|
||||
m_updater = m_updater.create(this);
|
||||
connect(m_updater.data(), &CBackgroundDataUpdater::consolidating, ui->comp_InfoBar, &CInfoBarWebReadersStatusComponent::consolidationRunning, Qt::QueuedConnection);
|
||||
m_updater->start(QThread::LowestPriority);
|
||||
ui->comp_MainInfoArea->getDataSettingsComponent()->setBackgroundUpdater(m_updater.data());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user