diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 70f7ad76c..fe9e76269 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -46,10 +46,14 @@ INIT = func { props.globals.getNode("/sim/help/basic", 1).setValues(basic_keys); props.globals.getNode("/sim/help/common", 1).setValues(common_aircraft_keys); - # enable "Fuel & Payload" dialog + # enable "Fuel & Payload" menu entry if (getprop("/sim/flight-model") == "yasim") { setprop("/sim/menubar/default/menu[5]/item[0]/enabled", 1); } + # disable "Autopilot" menu entry when KAP140 is used + if (props.globals.getNode("/autopilot/KAP140/locks") != nil) { + setprop("/sim/menubar/default/menu[3]/enabled", 0); + } } settimer(INIT, 0);