mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-02 20:37:38 +02:00
Free CommonCommandFlags from cycles again, big s.c.c. is 25
This commit is contained in:
@@ -392,3 +392,16 @@ void DoStop( AudacityProject &project )
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#include "CommonCommandFlags.h"
|
||||
|
||||
static RegisteredMenuItemEnabler stopIfPaused{{
|
||||
PausedFlag,
|
||||
AudioIONotBusyFlag,
|
||||
[]( const AudacityProject &project ){
|
||||
return MenuManager::Get( project ).mStopIfWasPaused; },
|
||||
[]( AudacityProject &project, CommandFlag ){
|
||||
if ( MenuManager::Get( project ).mStopIfWasPaused )
|
||||
TransportActions::StopIfPaused( project );
|
||||
}
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user