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

Reimplement commit 512c27d, fixing menus & shortcut keys on Windows

This commit is contained in:
Paul Licameli
2020-01-29 13:37:02 -05:00
parent ff2d20f335
commit 9639ba84f4
16 changed files with 40 additions and 45 deletions

View File

@@ -645,8 +645,7 @@ namespace MenuTable {
// return Items( ... );
//
// or:
// return FinderScope( findCommandHandler )
// .Eval( Items( ... ) );
// return ( FinderScope( findCommandHandler ), Items( ... ) );
//
// where findCommandHandler names a function.
// This is used before a sequence of many calls to Command() and
@@ -663,10 +662,6 @@ namespace MenuTable {
FinderScope( CommandHandlerFinder finder )
: ValueRestorer( sFinder, finder )
{}
// See usage comment above about this pass-through function
template< typename Value > Value&& Eval( Value &&value ) const
{ return std::forward<Value>(value); }
};
// Describes one command in a menu