mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-26 22:51:21 +01:00
Bug 1494 - Strange Pause behaviour with seeking/scrubbing
Now instead of the (strange) Pause, we Stop.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user