Launcher: Fix default runway selection
This commit is contained in:
parent
86786496a5
commit
3422caa4d2
2 changed files with 7 additions and 4 deletions
|
@ -25,6 +25,9 @@ Item {
|
|||
_location.addToRecent(selectedLocation);
|
||||
|
||||
if (selectedLocation.isAirportType) {
|
||||
// default to using the active runway when making a selection
|
||||
// via the GUI
|
||||
_location.useActiveRunway = true
|
||||
detailLoader.sourceComponent = airportDetails
|
||||
} else {
|
||||
detailLoader.sourceComponent = navaidDetails
|
||||
|
|
|
@ -36,12 +36,12 @@ Item {
|
|||
// not very declarative, try to remove this over time
|
||||
function syncUIFromController()
|
||||
{
|
||||
if (_location.detail.isRunwayType) {
|
||||
runwayRadio.select();
|
||||
runwayChoice.syncCurrentIndex();
|
||||
} else if (_location.detail.type == Positioned.Parking) {
|
||||
if (_location.detail.type == Positioned.Parking) {
|
||||
parkingRadio.select()
|
||||
parkingChoice.syncCurrentIndex();
|
||||
} else {
|
||||
runwayRadio.select();
|
||||
runwayChoice.syncCurrentIndex();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue