Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-580

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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved:

                Version Package
                1.3