I have a Python add-in that includes an extension. The only purpose if this extension is for some buttons in the add-in to be automatically enabled/disabled depending on if there are relevant layers in the current MXD's table on contents.
Therefore I need this extension to be loaded automatically when this add-in is installed.
AND I need this extension to be enabled right from the start.
In the config.xml, 'autoLoad' is set to 'true'. In the Python class, the __init__ function for the extension class includes:
self.enabled = True
However, when I install the add-in and run ArcMap, the extensions dialog shows the extension but NOT checked.