From 15b2850ca9948e84308920f950326ccdbcf860f9 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 3 May 2024 11:38:21 -0500 Subject: [PATCH] LT: thin the mixer-strip (name button) context menu --- gtk2_ardour/mixer_strip.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 0ada00d2a8..9c6525e0af 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1117,6 +1117,19 @@ MixerStrip::build_route_ops_menu () MenuList& items = route_ops_menu->items(); + if (ARDOUR::Profile->get_livetrax()) { + if (!_route->is_singleton ()) { + items.push_back (MenuElem (_("Rename..."), sigc::mem_fun(*this, &RouteUI::route_rename))); + items.push_back (SeparatorElem()); + /* do not allow rename if the track is record-enabled */ + items.back().set_sensitive (!is_track() || !track()->rec_enable_control()->get_value()); + items.push_back (MenuElem (_("Color..."), sigc::mem_fun (*this, &RouteUI::choose_color))); + items.push_back (SeparatorElem()); + items.push_back (MenuElem (_("Remove"), sigc::mem_fun(PublicEditor::instance(), &PublicEditor::remove_tracks))); + } + return; + } + if (active) { items.push_back (MenuElem (_("Color..."), sigc::mem_fun (*this, &RouteUI::choose_color)));