mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 04:35:41 +08:00
Check if services are available
This commit is contained in:
@@ -154,6 +154,7 @@ namespace BlackGui
|
|||||||
bool CInfoBarWebReadersStatusBase::hasAllData() const
|
bool CInfoBarWebReadersStatusBase::hasAllData() const
|
||||||
{
|
{
|
||||||
if (!sGui) { return false; }
|
if (!sGui) { return false; }
|
||||||
|
if (!sGui->hasWebDataServices()) { return false; }
|
||||||
return sGui->getWebDataServices()->getAirlineIcaoCodesCount() > 0 &&
|
return sGui->getWebDataServices()->getAirlineIcaoCodesCount() > 0 &&
|
||||||
sGui->getWebDataServices()->getAircraftIcaoCodesCount() > 0 &&
|
sGui->getWebDataServices()->getAircraftIcaoCodesCount() > 0 &&
|
||||||
sGui->getWebDataServices()->getDistributorsCount() > 0 &&
|
sGui->getWebDataServices()->getDistributorsCount() > 0 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user