1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Restore separators after "Move Track to Bottom" in TCP menus

This commit is contained in:
Paul Licameli
2020-02-06 16:51:54 -05:00
parent 3d5b0d4dd0
commit 540f2c5e67
4 changed files with 22 additions and 12 deletions

View File

@@ -695,8 +695,19 @@ struct ToolbarMenuVisitor : MenuVisitor
namespace MenuTable {
using namespace Registry;
// These are found by dynamic_cast
struct MenuSection {
virtual ~MenuSection();
};
struct WholeMenu {
WholeMenu( bool extend = false ) : extension{ extend } {}
virtual ~WholeMenu();
bool extension;
};
// Describes a main menu in the toolbar, or a sub-menu
struct MenuItem final : ConcreteGroupItem< false, ToolbarMenuVisitor > {
struct MenuItem final : ConcreteGroupItem< false, ToolbarMenuVisitor >
, WholeMenu {
// Construction from an internal name and a previously built-up
// vector of pointers
MenuItem( const Identifier &internalName,
@@ -842,11 +853,6 @@ namespace MenuTable {
Appender fn;
};
// This exists only so that dynamic_cast can find it
struct MenuSection {
virtual ~MenuSection();
};
struct MenuPart : ConcreteGroupItem< false, ToolbarMenuVisitor >, MenuSection
{
template< typename... Args >