hanjinliu / magic-class

Generate multifunctional and macro recordable GUIs from Python classes
https://hanjinliu.github.io/magic-class/
BSD 3-Clause "New" or "Revised" License
40 stars 5 forks source link

`skip_if` not passed down in container hierarchies #155

Closed bauerdavid closed 1 month ago

bauerdavid commented 1 month ago

Hey @hanjinliu, I wanted to use magicclass.serialize.serialize() to save widget states in a container, which contains nested containers. Some of these have Image widgets, and I wanted to skip these in serialization using the skip_if argument. The problem is that the value of skip_if is not passed down in the recursive call. I believe that adding it to lines 80 & 93 in magicclass.serialize.py would solve this issue.

hanjinliu commented 1 month ago

Hi @bauerdavid , thank you for reporting this issue! Sorry for the late reply. I'll address this hopely in the next week.