Fix explicit runway selection after automatic
Clear / set the ‘runway requested’ flag to fix selection from the airport dialog
This commit is contained in:
parent
a913d3be38
commit
4cdb08efe0
2 changed files with 9 additions and 1 deletions
|
@ -233,9 +233,11 @@
|
|||
if (mode["bestrunway"].getBoolValue()) {
|
||||
setprop("/sim/presets/runway", "");
|
||||
setprop("/sim/presets/parkpos", "");
|
||||
setprop("/sim/presets/runway-requested", 0);
|
||||
} else if (mode["runway"].getBoolValue()) {
|
||||
setprop("/sim/presets/runway", getprop("/sim/gui/dialogs/airports/selected-airport/rwy"));
|
||||
setprop("/sim/presets/parkpos", "");
|
||||
setprop("/sim/presets/runway-requested", 1);
|
||||
} else {
|
||||
setprop("/sim/presets/runway", "");
|
||||
setprop("/sim/presets/parkpos", getprop("/sim/gui/dialogs/airports/selected-airport/parkpos"));
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
setprop(propname, found[0].id);
|
||||
setprop(freqpropname, found[0].frequency / 100.0);
|
||||
|
||||
|
||||
}
|
||||
</open>
|
||||
|
||||
|
@ -351,6 +351,12 @@
|
|||
if (!mode.airport.getBoolValue()) {
|
||||
setprop("/sim/presets/airport-id", "");
|
||||
setprop("/sim/presets/runway", "");
|
||||
setprop("/sim/presets/runway-requested", 0);
|
||||
} else {
|
||||
var runway = getprop("/sim/presets/runway");
|
||||
if (runway != "") {
|
||||
setprop("/sim/presets/runway-requested", 1);
|
||||
}
|
||||
}
|
||||
|
||||
if (!mode.lonlat.getBoolValue()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue