-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 1.2
-
Component/s: Plugins API
-
None
Picard allows plugins to create a hierarchical menu in the itemview context menu by creating a MENU attribute inside the BaseAction class i.e.
NAME = 'Menu item" MENU = ['Menu 1']
will create a menu:
Plugins
Menu 1
Menu item
This is not working because the code is slightly incorrect in picard/ui/itemviews.py:
373: for index in xrange(1, len(action.MENU)):
should read:
373: for index in xrange(1, len(action.MENU) + 1):
A fix has been submitted at https://github.com/musicbrainz/picard/pull/269 .