mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Ref T514, fixed load progress checks
This commit is contained in:
committed by
Mat Sutcliffe
parent
2aff3bb775
commit
72bba35423
@@ -67,7 +67,7 @@ namespace BlackGui
|
||||
{
|
||||
Q_UNUSED(count);
|
||||
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))
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace BlackGui
|
||||
|
||||
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);
|
||||
Q_UNUSED(logId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user