mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-20 07:46:30 +01:00
Move menu handling functions out of class AudacityProject
This commit is contained in:
@@ -527,7 +527,7 @@ int TimerRecordDialog::RunWaitDialog()
|
||||
return POST_TIMER_RECORD_CANCEL_WAIT;
|
||||
} else {
|
||||
// Record for specified time.
|
||||
pProject->OnRecord(*pProject);
|
||||
GetMenuCommandHandler(*pProject).OnRecord(*pProject);
|
||||
bool bIsRecording = true;
|
||||
|
||||
wxString sPostAction = m_pTimerAfterCompleteChoiceCtrl->GetString(m_pTimerAfterCompleteChoiceCtrl->GetSelection());
|
||||
@@ -579,7 +579,7 @@ int TimerRecordDialog::RunWaitDialog()
|
||||
|
||||
// Must do this AFTER the timer project dialog has been deleted to ensure the application
|
||||
// responds to the AUDIOIO events...see not about bug #334 in the ProgressDialog constructor.
|
||||
pProject->OnStop(*pProject);
|
||||
GetMenuCommandHandler(*pProject).OnStop(*pProject);
|
||||
|
||||
// Let the caller handle cancellation or failure from recording progress.
|
||||
if (updateResult == ProgressResult::Cancelled || updateResult == ProgressResult::Failed)
|
||||
|
||||
Reference in New Issue
Block a user