1
0
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:
Paul Licameli
2019-06-25 09:41:11 -04:00
parent baf4648621
commit d236507682
2 changed files with 13 additions and 12 deletions

View File

@@ -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 );
}
}};