pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
29 stars 20 forks source link

Fix selector static getters #112

Closed pfaion closed 4 years ago

pfaion commented 4 years ago

This PR fixes incorrect Selector behavior with static getters (that always return the same value). While the selected value should never change with a static getter, it was actually updated to the clicked selection.

The problem was that self.selection_idx was set from the clicked index already although it should not change (because the getter is constant).