Strange behavior in class overlay


Alberto Buffolino
 

Hi all,
refactoring my add-on ColumnsReview:
https://github.com/ABuffEr/columnsReview
according to an old Joseph's observation, I modified the chooseNVDAObjectOverlayClasses, changing these lines from:
***
if announceEmptyList and obj.role == ct.ROLE_LIST and "listview" in obj.windowClassName.lower():
clsList.insert(0, EmptyList)
***
to:
***
if announceEmptyList and isinstance(obj, List):
clsList.insert(0, EmptyList)
***
But, for some reason, it works only in the first way. I'm confused, because if I open NVDA console over the list object, and check manually the isinstance condition, this is true.
Can someone provide a explanation?
Thanks in advance.
Alberto

Join nvda-devel@groups.io to automatically receive all group messages.