Picard does not display submenus where plugins have defined the MENU attribute for the BaseAction

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 1.3
    • 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 .

            Assignee:
            Unassigned
            Reporter:
            Sophist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.3