diff --git a/A320-main.xml b/A320-main.xml index 41be07d7..56cca767 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -1722,6 +1722,10 @@ 1219 true + + + false + diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index 45411ff2..dd0be68f 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -8473,7 +8473,11 @@ property-toggle - /instrumentation/efis[0]/nd/wxr-live-enabled + /instrumentation/efis[1]/inputs/wxr + + + property-toggle + /instrumentation/wxr/enabled nasal @@ -8486,7 +8490,7 @@ rotate radar_sys -20 - /instrumentation/efis[0]/inputs/wxr + /instrumentation/wxr/enabled
0.020282 -0.210647 diff --git a/Models/Instruments/ND/canvas/framework/navdisplay.nas b/Models/Instruments/ND/canvas/framework/navdisplay.nas index 7e05b078..783a8e84 100644 --- a/Models/Instruments/ND/canvas/framework/navdisplay.nas +++ b/Models/Instruments/ND/canvas/framework/navdisplay.nas @@ -335,6 +335,12 @@ canvas.NavDisplay.update_sub = func(){ canvas.NavDisplay.update = func() # FIXME: This stuff is still too aircraft specific, cannot easily be reused by other aircraft { var _time = systime(); + # Disables WXR Live if it's not enabled. The toggle_weather_live should be common to all + # ND instances. + var wxr_live_enabled = getprop(wxr_live_tree~'/enabled'); + if(wxr_live_enabled == nil or wxr_live_enabled == '') + wxr_live_enabled = 0; + me.set_switch('toggle_weather_live', wxr_live_enabled); call(me.update_sub, nil, nil, caller(0)[0]); # call this in the same namespace to "steal" its variables # MapStructure update!