Set up layers menu correctly depending on current state.
git-svn-id: svn://localhost/ardour2/branches/3.0@8938 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
465aaffdd4
commit
8b1203dc33
@ -466,9 +466,14 @@ RouteTimeAxisView::build_display_menu ()
|
||||
|
||||
layers_items.push_back(RadioMenuElem (layers_group, _("Overlaid"),
|
||||
sigc::bind (sigc::mem_fun (*this, &RouteTimeAxisView::set_layer_display), Overlaid)));
|
||||
|
||||
dynamic_cast<RadioMenuItem*> (&layers_items.back())->set_active (_view && _view->layer_display() == Overlaid);
|
||||
|
||||
layers_items.push_back(RadioMenuElem (layers_group, _("Stacked"),
|
||||
sigc::bind (sigc::mem_fun (*this, &RouteTimeAxisView::set_layer_display), Stacked)));
|
||||
|
||||
dynamic_cast<RadioMenuItem*> (&layers_items.back())->set_active (_view && _view->layer_display() == Stacked);
|
||||
|
||||
items.push_back (MenuElem (_("Layers"), *layers_menu));
|
||||
|
||||
if (!Profile->get_sae()) {
|
||||
|
Loading…
Reference in New Issue
Block a user