mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-09 17:07:43 +02:00
Only push state if recording, not when monitoring
This commit is contained in:
parent
055b40c3f2
commit
204aa37716
@ -4725,14 +4725,18 @@ void AudacityProject::OnAudioIOStartRecording()
|
|||||||
// This is called after recording has stopped and all tracks have flushed.
|
// This is called after recording has stopped and all tracks have flushed.
|
||||||
void AudacityProject::OnAudioIOStopRecording()
|
void AudacityProject::OnAudioIOStopRecording()
|
||||||
{
|
{
|
||||||
// Add to history
|
// Only push state if we were capturing and not monitoring
|
||||||
PushState(_("Recorded Audio"), _("Record"));
|
if (GetAudioIOToken() > 0)
|
||||||
|
|
||||||
// Reset timer record
|
|
||||||
if (IsTimerRecordCancelled())
|
|
||||||
{
|
{
|
||||||
OnUndo();
|
// Add to history
|
||||||
ResetTimerRecordFlag();
|
PushState(_("Recorded Audio"), _("Record"));
|
||||||
|
|
||||||
|
// Reset timer record
|
||||||
|
if (IsTimerRecordCancelled())
|
||||||
|
{
|
||||||
|
OnUndo();
|
||||||
|
ResetTimerRecordFlag();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Refresh the project window
|
// Refresh the project window
|
||||||
|
Loading…
x
Reference in New Issue
Block a user