mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #395, GUI for simulator settings
* improved formatting of aircraft views * extended settings for render restrictions (such as max. aircraft, max range ...) * connected new signal / slots in runtime * Doxygen / formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
bbd5ad2cbc
commit
e7f65ba0b6
@@ -58,14 +58,19 @@ namespace BlackGui
|
||||
|
||||
void CRemoteAircraftSelector::ps_onAddedAircraft(const CSimulatedAircraft &aircraft)
|
||||
{
|
||||
Q_UNUSED(aircraft);
|
||||
CCallsign cs(aircraft.getCallsign());
|
||||
if (cs.isEmpty()) { return; }
|
||||
if (this->m_aircraft.containsCallsign(cs)) { return; }
|
||||
this->fillComboBox();
|
||||
}
|
||||
|
||||
void CRemoteAircraftSelector::ps_onRemovedAircraft(const CCallsign &callsign)
|
||||
{
|
||||
Q_UNUSED(callsign);
|
||||
this->fillComboBox();
|
||||
if (callsign.isEmpty()) { return; }
|
||||
if (this->m_aircraft.containsCallsign(callsign))
|
||||
{
|
||||
this->fillComboBox();
|
||||
}
|
||||
}
|
||||
|
||||
void CRemoteAircraftSelector::fillComboBox()
|
||||
|
||||
Reference in New Issue
Block a user