13
0

alter menu name for processor automation and hide extra separator in menu when not needed

This commit is contained in:
Paul Davis 2013-03-30 09:23:12 -04:00
parent c184d1fbe6
commit 0a05c08a1a

View File

@ -387,14 +387,13 @@ RouteTimeAxisView::build_automation_action_menu (bool for_selection)
items.push_back (MenuElem (_("Hide All Automation"),
sigc::bind (sigc::mem_fun (*this, &RouteTimeAxisView::hide_all_automation), for_selection)));
items.push_back (SeparatorElem ());
/* Attach the plugin submenu. It may have previously been used elsewhere,
so it was detached above
*/
if (!subplugin_menu.items().empty()) {
items.push_back (MenuElem (_("Plugins"), subplugin_menu));
items.push_back (SeparatorElem ());
items.push_back (MenuElem (_("Processor automation"), subplugin_menu));
items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);;
}
}