AddButtonsData missing a lister property

It would be convenient to know from which lister (or sourcetab & desttab) the new OnAddButtons method is "called from".
My current use case is that I want to build some menu which depends on vars stored at the tab level. So I do need to get the lister.

I guess I could try and reach from DOpus.listers.lastactive, but 1) I'm not 100% sure it's equivalent (common sense says it is though :slight_smile: ), 2) it would seem more obvious (a bit like the func object in the ScriptCommandData gives access to sourcetab/desttab).

Could you confirm DOpus.listers.lastactive would be equivalent?
If yes, no rush then to consider wether to extend the AddButtonsData properties or not.

lister and viewer properties have been added in Directory Opus 13.15.3 (Beta).

1 Like