mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
do not attach plugin automation submenu to automation menu if the route has no plugins (avoid common user confusion) - thanks thorsten
git-svn-id: svn://localhost/ardour2/branches/3.0@13468 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
edd694171b
commit
fc14ecb93b
1 changed files with 7 additions and 4 deletions
|
|
@ -414,10 +414,13 @@ RouteTimeAxisView::build_automation_action_menu (bool for_selection)
|
||||||
items.push_back (SeparatorElem ());
|
items.push_back (SeparatorElem ());
|
||||||
|
|
||||||
/* Attach the plugin submenu. It may have previously been used elsewhere,
|
/* Attach the plugin submenu. It may have previously been used elsewhere,
|
||||||
so it was detached above */
|
so it was detached above
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!subplugin_menu.items().empty()) {
|
||||||
items.push_back (MenuElem (_("Plugins"), subplugin_menu));
|
items.push_back (MenuElem (_("Plugins"), subplugin_menu));
|
||||||
items.back().set_sensitive (!subplugin_menu.items().empty() && (!for_selection || _editor.get_selection().tracks.size() == 1));;
|
items.back().set_sensitive (!for_selection || _editor.get_selection().tracks.size() == 1);;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue