disable joystick info dialog if no js available
This commit is contained in:
parent
f3d790eb26
commit
76e6f5247a
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ INIT = func {
|
|||
menuEnable("fuel-and-payload", getprop("/sim/flight-model") == "yasim");
|
||||
menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil);
|
||||
menuEnable("tutorial-start", size(props.globals.getNode("/sim").getChildren("tutorial")));
|
||||
menuEnable("joystick-info", size(props.globals.getNode("/input/joysticks").getChildren("js")));
|
||||
|
||||
var fps = props.globals.getNode("/sim/rendering/fps-display", 1);
|
||||
setlistener(fps, fpsDisplay, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue