mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
Fix status bar messages and disabling of pause button for scrubbing.
This commit is contained in:
parent
0d9d8a057d
commit
66454b7e4c
@ -208,6 +208,12 @@ void Scrubber::MarkScrubStart(
|
||||
|
||||
ControlToolBar * const ctb = mProject->GetControlToolBar();
|
||||
ctb->SetPlay(true, ControlToolBar::PlayAppearance::Scrub);
|
||||
if(gAudioIO->IsPaused())
|
||||
ctb->Pause(); // un-pause
|
||||
|
||||
// This disables the pause button.
|
||||
ctb->EnableDisableButtons();
|
||||
|
||||
ctb->UpdateStatusBar(mProject);
|
||||
|
||||
CheckMenuItem();
|
||||
@ -245,8 +251,11 @@ bool Scrubber::MaybeStartScrubbing(wxCoord xx)
|
||||
);
|
||||
if (time1 != time0)
|
||||
{
|
||||
if (busy)
|
||||
if (busy) {
|
||||
auto position = mScrubStartPosition;
|
||||
ctb->StopPlaying();
|
||||
mScrubStartPosition = position;
|
||||
}
|
||||
|
||||
AudioIOStartStreamOptions options(mProject->GetDefaultPlayOptions());
|
||||
options.timeTrack = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user