mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-16 16:20:50 +02:00
Bug 1494 - Strange Pause behaviour with seeking/scrubbing
Now instead of the (strange) Pause, we Stop.
This commit is contained in:
parent
0fe2659a7b
commit
adb33f466e
@ -1341,6 +1341,19 @@ void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt))
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
#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())
|
if (gAudioIO->IsScrubbing())
|
||||||
GetActiveProject()->GetScrubber().Pause(mPaused);
|
GetActiveProject()->GetScrubber().Pause(mPaused);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user