mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 23:32:53 +02:00
Free CommonCommandFlags from cycles again, big s.c.c. is 25
This commit is contained in:
parent
baf4648621
commit
d236507682
@ -21,7 +21,6 @@ Paul Licameli split from Menus.cpp
|
|||||||
#include "NoteTrack.h"
|
#include "NoteTrack.h"
|
||||||
#include "Project.h"
|
#include "Project.h"
|
||||||
#include "ProjectAudioIO.h"
|
#include "ProjectAudioIO.h"
|
||||||
#include "ProjectAudioManager.h"
|
|
||||||
#include "ProjectFileIO.h"
|
#include "ProjectFileIO.h"
|
||||||
#include "ProjectHistory.h"
|
#include "ProjectHistory.h"
|
||||||
#include "ProjectSettings.h"
|
#include "ProjectSettings.h"
|
||||||
@ -343,14 +342,3 @@ const ReservedCommandFlag
|
|||||||
[](const AudacityProject &){ return true; }
|
[](const AudacityProject &){ return true; }
|
||||||
} // jkc
|
} // jkc
|
||||||
;
|
;
|
||||||
|
|
||||||
RegisteredMenuItemEnabler stopIfPaused{{
|
|
||||||
PausedFlag,
|
|
||||||
AudioIONotBusyFlag,
|
|
||||||
[]( const AudacityProject &project ){
|
|
||||||
return MenuManager::Get( project ).mStopIfWasPaused; },
|
|
||||||
[]( AudacityProject &project, CommandFlag ){
|
|
||||||
if ( MenuManager::Get( project ).mStopIfWasPaused )
|
|
||||||
TransportActions::StopIfPaused( project );
|
|
||||||
}
|
|
||||||
}};
|
|
||||||
|
@ -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 );
|
||||||
|
}
|
||||||
|
}};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user