1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-16 08:10:25 +02:00

Bug 1494 - Strange Pause behaviour with seeking/scrubbing

Now instead of the (strange) Pause, we Stop.
This commit is contained in:
James Crook 2018-08-08 18:40:16 +01:00
parent 0fe2659a7b
commit adb33f466e

View File

@ -1341,6 +1341,19 @@ void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt))
}
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
// Bug 1494 - Pausing a seek or scrub should just STOP as
// it is confusing to be in a paused scrub state.
bool bStopInstead = mPaused &&
gAudioIO->IsScrubbing() &&
!GetActiveProject()->GetScrubber().IsSpeedPlaying();
if (bStopInstead) {
wxCommandEvent dummy;
OnStop(dummy);
return;
}
if (gAudioIO->IsScrubbing())
GetActiveProject()->GetScrubber().Pause(mPaused);
else