mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Based on slack discussion MS/KB: Show airports in range also when simulator is connected, but network is not. Remark: distance and bearing columns are not calculated in that case. See T125 comment for details.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
65bd2d20ad
commit
769e3a0e29
@@ -50,14 +50,15 @@ namespace BlackGui
|
||||
ui->tvp_AircraftInRange->setAircraftMode(CSimulatedAircraftListModel::NetworkMode);
|
||||
ui->tvp_AircraftInRange->configureMenu(true, false, false);
|
||||
|
||||
this->ps_settingsChanged();
|
||||
|
||||
connect(ui->tvp_AircraftInRange, &CSimulatedAircraftView::modelDataChangedDigest, this, &CAircraftComponent::ps_onRowCountChanged);
|
||||
connect(ui->tvp_AircraftInRange, &CSimulatedAircraftView::requestTextMessageWidget, this, &CAircraftComponent::requestTextMessageWidget);
|
||||
connect(ui->tvp_AircraftInRange, &CSimulatedAircraftView::requestHighlightInSimulator, this, &CAircraftComponent::ps_onMenuHighlightInSimulator);
|
||||
connect(ui->tvp_AirportsInRange, &CSimulatedAircraftView::modelDataChangedDigest, this, &CAircraftComponent::ps_onRowCountChanged);
|
||||
connect(sGui->getIContextNetwork(), &IContextNetwork::connectionStatusChanged, this, &CAircraftComponent::ps_connectionStatusChanged);
|
||||
connect(&m_updateTimer, &QTimer::timeout, this, &CAircraftComponent::update);
|
||||
|
||||
this->ps_settingsChanged();
|
||||
m_updateTimer.start();
|
||||
}
|
||||
|
||||
CAircraftComponent::~CAircraftComponent()
|
||||
@@ -141,11 +142,10 @@ namespace BlackGui
|
||||
if (INetwork::isDisconnectedStatus(to))
|
||||
{
|
||||
ui->tvp_AircraftInRange->clear();
|
||||
this->m_updateTimer.stop();
|
||||
}
|
||||
else if (INetwork::isConnectedStatus(to))
|
||||
{
|
||||
this->m_updateTimer.start();
|
||||
// void
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user