13
0

Allow to reactivate disable tracks in the editor

Disabled tracks cannot be selected, so "apply to selection"
does not work to reactivate track... unless it has just been
deactivated. The Selection is not cleared when changing active
state.
This commit is contained in:
Robin Gareus 2024-08-29 02:28:30 +02:00
parent 24fe6adb02
commit ed105fdf66
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -883,7 +883,7 @@ RouteTimeAxisView::build_display_menu ()
i->set_inconsistent (true); i->set_inconsistent (true);
} }
i->set_sensitive(! _session->transport_rolling() && ! always_active); i->set_sensitive(! _session->transport_rolling() && ! always_active);
i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), click_sets_active, true)); i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::set_route_active), click_sets_active, !_editor.get_selection().tracks.empty ()));
items.push_back (SeparatorElem()); items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Hide"), sigc::bind (sigc::mem_fun(_editor, &PublicEditor::hide_track_in_display), this, true))); items.push_back (MenuElem (_("Hide"), sigc::bind (sigc::mem_fun(_editor, &PublicEditor::hide_track_in_display), this, true)));