EdgeTX / edgetx-sdcard

SD Card contents and images for EdgeTX
125 stars 41 forks source link

LibGui backward compatibility fix. #153

Closed frankiearzu closed 5 months ago

frankiearzu commented 5 months ago

On some scripts on 2.9.4, some widget "edit" elements provide an "update()" method to refresh its value. Looks like there was a change in LibGUI to rename the method from "update()" to "onUpdate()", breaking older scripts using LibGUI.

The fix is to call "update()" or "onUpdate()" if the edit element has it (only one of them will be called).

SoarETX broke due to this change.