From 2b2d923dc65a42671f9170fe38487f2a5d3e4875 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 May 2024 18:13:10 +0200 Subject: [PATCH] Remove extra group context menu separator --- gtk2_ardour/group_tabs.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc index ca05d9be7d..b6f300f8c8 100644 --- a/gtk2_ardour/group_tabs.cc +++ b/gtk2_ardour/group_tabs.cc @@ -363,14 +363,17 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area) const VCAList vcas = _session->vca_manager().vcas (); if (!in_tab_area) { - /* context menu is not for a group tab, show the "create new - from" items here + /* context menu is not for a group tab (e.g. mixer sidebar). + * Show the "create new from" items here. */ add_new_from_items (items); } - if (g) { + if (!in_tab_area && g) { items.push_back (SeparatorElem()); + } + + if (g) { items.push_back (MenuElem (_("Edit Group..."), sigc::bind (sigc::mem_fun (*this, &GroupTabs::edit_group), g))); items.push_back (MenuElem (_("Collect Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::collect), g))); items.push_back (MenuElem (_("Remove Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::remove_group), g)));