mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Replace INetwork::CConnectionStatus with proper value object
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Network;
|
||||
using namespace BlackCore;
|
||||
using namespace BlackCore::Context;
|
||||
|
||||
@@ -115,10 +116,10 @@ namespace BlackGui
|
||||
this->updateStations();
|
||||
}
|
||||
|
||||
void CAtcButtonComponent::onConnectionStatusChanged(INetwork::ConnectionStatus from, INetwork::ConnectionStatus to)
|
||||
void CAtcButtonComponent::onConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
||||
{
|
||||
Q_UNUSED(from);
|
||||
if (INetwork::isDisconnectedStatus(to))
|
||||
if (to.isDisconnected())
|
||||
{
|
||||
this->setVisible(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user