From 0965e9fbd26a028e6becf2a98290ed7d3512f979 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Fri, 1 Jun 2018 12:59:56 -0400 Subject: [PATCH] Move the Punch and Roll item to the Record sub-menu --- src/Menus.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index 41e8219b7..449db1483 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -868,6 +868,13 @@ void AudacityProject::CreateMenusAndCommands() ); c->AddItem(wxT("TimerRecord"), XXO("&Timer Record..."), FN(OnTimerRecord), wxT("Shift+T")); + +#ifdef EXPERIMENTAL_PUNCH_AND_ROLL + c->AddItem(wxT("PunchAndRoll"), XXO("Punch and Rol&l Record"), FN(OnPunchAndRoll), wxT("Shift+D"), + WaveTracksExistFlag | AudioIONotBusyFlag, + WaveTracksExistFlag | AudioIONotBusyFlag); +#endif + // JKC: I decided to duplicate this between play and record, rather than put it // at the top level. AddItem can now cope with simple duplicated items. // PRL: This second registration of wxT("Pause"), with unspecified flags, @@ -924,12 +931,6 @@ void AudacityProject::CreateMenusAndCommands() AudioIONotBusyFlag | CanStopAudioStreamFlag, AudioIONotBusyFlag | CanStopAudioStreamFlag); -#ifdef EXPERIMENTAL_PUNCH_AND_ROLL - c->AddItem(wxT("PunchAndRoll"), XXO("Punch and Rol&l Record"), FN(OnPunchAndRoll), wxT("Shift+D"), - WaveTracksExistFlag | AudioIONotBusyFlag, - WaveTracksExistFlag | AudioIONotBusyFlag); -#endif - c->BeginSubMenu(_("Transport &Options")); // Sound Activated recording options c->AddItem(wxT("SoundActivationLevel"), XXO("Sound Activation Le&vel..."), FN(OnSoundActivated),