amiga-mui / muidev

:mage_man: Magic User Interface (MUI) – Documentation+Releases

Home Page:http://muidev.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MUIA_Listtree_Active doesn't work from MUIM_CallHook

afalkenhahn opened this issue · comments

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

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