mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Ref T514, fixed load progress checks
This commit is contained in:
committed by
Mat Sutcliffe
parent
2aff3bb775
commit
72bba35423
@@ -60,7 +60,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
Q_UNUSED(count);
|
Q_UNUSED(count);
|
||||||
if (!sGui || sGui->isShuttingDown() || !sGui->hasWebDataServices()) { return; }
|
if (!sGui || sGui->isShuttingDown() || !sGui->hasWebDataServices()) { return; }
|
||||||
if (!entity.testFlag(CEntityFlags::AirlineIcaoEntity) && CEntityFlags::isFinishedReadState(readState)) { return; }
|
if (!entity.testFlag(CEntityFlags::AirlineIcaoEntity)) { return; }
|
||||||
|
|
||||||
if (CEntityFlags::isFinishedReadState(readState))
|
if (CEntityFlags::isFinishedReadState(readState))
|
||||||
{
|
{
|
||||||
@@ -75,7 +75,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CDbAirlineIcaoComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
void CDbAirlineIcaoComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
||||||
{
|
{
|
||||||
if (CEntityFlags::AirlineIcaoEntity != entity) { return; }
|
if (!entity.testFlag(CEntityFlags::AirlineIcaoEntity)) { return; }
|
||||||
this->showDownloadProgress(progress, current, max, url, 5000);
|
this->showDownloadProgress(progress, current, max, url, 5000);
|
||||||
Q_UNUSED(logId);
|
Q_UNUSED(logId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
Q_UNUSED(count);
|
Q_UNUSED(count);
|
||||||
if (!sGui || sGui->isShuttingDown() || !sGui->getWebDataServices()) { return; }
|
if (!sGui || sGui->isShuttingDown() || !sGui->getWebDataServices()) { return; }
|
||||||
if (!entity.testFlag(CEntityFlags::LiveryEntity) && CEntityFlags::isFinishedReadState(readState)) { return; }
|
if (!entity.testFlag(CEntityFlags::LiveryEntity)) { return; }
|
||||||
|
|
||||||
if (CEntityFlags::isFinishedReadState(readState))
|
if (CEntityFlags::isFinishedReadState(readState))
|
||||||
{
|
{
|
||||||
@@ -82,7 +82,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CDbLiveryComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
void CDbLiveryComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
||||||
{
|
{
|
||||||
if (CEntityFlags::LiveryEntity != entity) { return; }
|
if (!entity.testFlag(CEntityFlags::LiveryEntity)) { return; }
|
||||||
this->showDownloadProgress(progress, current, max, url, 5000);
|
this->showDownloadProgress(progress, current, max, url, 5000);
|
||||||
Q_UNUSED(logId);
|
Q_UNUSED(logId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CDbModelComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
void CDbModelComponent::onEntityDownloadProgress(CEntityFlags::Entity entity, int logId, int progress, qint64 current, qint64 max, const QUrl &url)
|
||||||
{
|
{
|
||||||
if (CEntityFlags::ModelEntity != entity) { return; }
|
if (!entity.testFlag(CEntityFlags::ModelEntity)) { return; }
|
||||||
this->showDownloadProgress(progress, current, max, url, 5000);
|
this->showDownloadProgress(progress, current, max, url, 5000);
|
||||||
Q_UNUSED(logId);
|
Q_UNUSED(logId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user