mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 09:00:52 +02:00
Per discussions with Peter Sampson, at the end of successful Timer Record, save the project.
If user hadn't saved it before, will see the Save As dialog. If user had saved it before, it will safely be saved, automatically.
This commit is contained in:
parent
7c23be0126
commit
b16db7ca2b
@ -226,9 +226,12 @@ void TimerRecordDialog::OnOK(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
///Runs the wait for start dialog. Returns false if the user clicks stop while we are recording
|
///Runs the wait for start dialog. Returns false if the user clicks stop while we are recording
|
||||||
///so that the high
|
///so that the high
|
||||||
|
// <ANSWER-ME: so that the "high" what does what?>
|
||||||
bool TimerRecordDialog::RunWaitDialog()
|
bool TimerRecordDialog::RunWaitDialog()
|
||||||
{
|
{
|
||||||
|
AudacityProject* pProject = GetActiveProject();
|
||||||
int updateResult = eProgressSuccess;
|
int updateResult = eProgressSuccess;
|
||||||
|
|
||||||
if (m_DateTime_Start > wxDateTime::UNow())
|
if (m_DateTime_Start > wxDateTime::UNow())
|
||||||
updateResult = this->WaitForStart();
|
updateResult = this->WaitForStart();
|
||||||
|
|
||||||
@ -240,7 +243,6 @@ bool TimerRecordDialog::RunWaitDialog()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Record for specified time.
|
// Record for specified time.
|
||||||
AudacityProject* pProject = GetActiveProject();
|
|
||||||
pProject->OnRecord();
|
pProject->OnRecord();
|
||||||
bool bIsRecording = true;
|
bool bIsRecording = true;
|
||||||
|
|
||||||
@ -273,6 +275,12 @@ bool TimerRecordDialog::RunWaitDialog()
|
|||||||
// Let the caller handle cancellation or failure from recording progress.
|
// Let the caller handle cancellation or failure from recording progress.
|
||||||
if (updateResult == eProgressCancelled || updateResult == eProgressFailed)
|
if (updateResult == eProgressCancelled || updateResult == eProgressFailed)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// Success, so let's automatically save it, for safety's sake.
|
||||||
|
// If user hadn't saved it before, they'll see the Save As dialog.
|
||||||
|
// If user had saved it before, it will safely be saved, automatically.
|
||||||
|
pProject->Save();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user