makerplane / pyEfis

Electronic Flight Information System in Python
GNU General Public License v2.0
55 stars 31 forks source link

Fixed button recusrsion issue #211

Closed e100 closed 1 month ago

e100 commented 1 month ago

When buttons performed actions those action can trigger signals or callbacks to the same buttons, combine this with re-using the same button config on multiple screens and all sorts of strange interactions will happen.

To address this some actions are not performed when the button is not visible and in other places guards are put in place to block signals to prevent the recursion. Not sure if I found and fixed all of them but so far I've been unable to reproduce any issues.