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:
Klaus Basan
2017-09-26 20:15:28 +02:00
parent 3cf97b3f37
commit 40bc75a98c
7 changed files with 64 additions and 9 deletions

View File

@@ -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());
}