1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

Only push state if recording, not when monitoring

This commit is contained in:
lllucius 2014-12-29 20:26:07 +00:00
parent 055b40c3f2
commit 204aa37716

View File

@ -4725,14 +4725,18 @@ void AudacityProject::OnAudioIOStartRecording()
// This is called after recording has stopped and all tracks have flushed.
void AudacityProject::OnAudioIOStopRecording()
{
// Add to history
PushState(_("Recorded Audio"), _("Record"));
// Reset timer record
if (IsTimerRecordCancelled())
// Only push state if we were capturing and not monitoring
if (GetAudioIOToken() > 0)
{
OnUndo();
ResetTimerRecordFlag();
// Add to history
PushState(_("Recorded Audio"), _("Record"));
// Reset timer record
if (IsTimerRecordCancelled())
{
OnUndo();
ResetTimerRecordFlag();
}
}
// Refresh the project window