1
0
Fork 0

Launcher: Fix default runway selection

This commit is contained in:
James Turner 2018-07-18 11:33:43 +01:00
parent 86786496a5
commit 3422caa4d2
2 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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();
}
}