Conditional Context Menus not working

In Glyphs 3, I get an error in a SelectTool-based plugin which uses conditional context menus:

Traceback (most recent call last):
  File "GlyphsApp/plugins.py", line 1588, in addMenuItemsForEvent_toMenu_
AttributeError: 'MyTool' object has no attribute '_conditionalContextMenus'

Fixed it. Thanks