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);
|
_location.addToRecent(selectedLocation);
|
||||||
|
|
||||||
if (selectedLocation.isAirportType) {
|
if (selectedLocation.isAirportType) {
|
||||||
|
// default to using the active runway when making a selection
|
||||||
|
// via the GUI
|
||||||
|
_location.useActiveRunway = true
|
||||||
detailLoader.sourceComponent = airportDetails
|
detailLoader.sourceComponent = airportDetails
|
||||||
} else {
|
} else {
|
||||||
detailLoader.sourceComponent = navaidDetails
|
detailLoader.sourceComponent = navaidDetails
|
||||||
|
|
|
@ -36,12 +36,12 @@ Item {
|
||||||
// not very declarative, try to remove this over time
|
// not very declarative, try to remove this over time
|
||||||
function syncUIFromController()
|
function syncUIFromController()
|
||||||
{
|
{
|
||||||
if (_location.detail.isRunwayType) {
|
if (_location.detail.type == Positioned.Parking) {
|
||||||
runwayRadio.select();
|
|
||||||
runwayChoice.syncCurrentIndex();
|
|
||||||
} else if (_location.detail.type == Positioned.Parking) {
|
|
||||||
parkingRadio.select()
|
parkingRadio.select()
|
||||||
parkingChoice.syncCurrentIndex();
|
parkingChoice.syncCurrentIndex();
|
||||||
|
} else {
|
||||||
|
runwayRadio.select();
|
||||||
|
runwayChoice.syncCurrentIndex();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue