musicbrainz/picard — pull request #37 by brianfreud (2012-05-06 04:20:01+00:00)
Title: Separate clusterlist into a separate plugin registration.

This is a pretty minor change in impact, given that no plugins currently exist which actually intend to do anything from the plugin menu for the parent "Clusters" item. This change makes it so that register_cluster_action does not also end up creating plugin menu items in that menu item (the clusterlist item). The negative impact of such behaviour can be seen if you look in that item's plugin menu while using the submenu-supporting search plugin along with https://github.com/musicbrainz/picard/pull/34 . Instead, this now adds a register_clusterlist_action so that there's more granular control, if there was some reason you did want something to be in that specific menu item's plugin menu, or in the typical case, where you do *not* want "cluster" actions to also end up dumped into that menu.

(Note, the submenu patch already has this type of granular control for menu submenus; this patch simply gives the same sort of granular control for menu actions.)