Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MUIA_Listtree_Active doesn't work from MUIM_CallHook #340

Closed
afalkenhahn opened this issue May 29, 2021 · 1 comment
Closed

MUIA_Listtree_Active doesn't work from MUIM_CallHook #340

afalkenhahn opened this issue May 29, 2021 · 1 comment
Assignees
Labels
bug Something isn't working #Listtree.mcc

Comments

@afalkenhahn
Copy link

When making MUI call a hook whenever MUIA_Listtree_Active changes, it seems like that at the time the hook gets called, MUIA_Listtree_Active doesn't return the correct active item. Take a look at the example attached. If you select an item, MUIA_Listtree_Active will still return NULL in the call hook. After that, MUIA_Listtree_Active will always return the previously active item so it looks like that at the time the hook gets called, MUIA_Listtree_Active still returns the old state.

main.txt

@tboeckel tboeckel self-assigned this May 31, 2021
@tboeckel tboeckel added #Listtree.mcc bug Something isn't working labels May 31, 2021
@tboeckel tboeckel added this to the MUI 5.0-2021R1 milestone May 31, 2021
@tboeckel
Copy link
Contributor

You are right. The notification was triggered before the new treenode was set. Fixed in the next nightly build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working #Listtree.mcc
Projects
None yet
Development

No branches or pull requests

2 participants