WerWolv / libtesla

The support library for Tesla overlays
GNU General Public License v2.0
218 stars 49 forks source link

Fix goBack from click listener crash #16

Closed diwo closed 4 years ago

diwo commented 4 years ago

Go back from element handler crashes because gui is destroyed when popped from the stack, but gui input handler is still fired afterwards

WerWolv commented 4 years ago

Hm isn't the same going to happen when calling goBack just bellow in handled = handled | currentGui->handleInput(keysDown, keysHeld, touchPos, joyStickPosLeft, joyStickPosRight);?

diwo commented 4 years ago

Only if handleInput calls goback without returning true for handled. Whereas gui's handleInput was called unconditionally