mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 15:22:34 +02:00
Bug1052 again: Push play button and change its image as soon as scrub click.
This commit is contained in:
commit
880241dd88
@ -155,6 +155,7 @@ void Scrubber::MarkScrubStart(
|
|||||||
mScrubStartClockTimeMillis = ::wxGetLocalTimeMillis();
|
mScrubStartClockTimeMillis = ::wxGetLocalTimeMillis();
|
||||||
|
|
||||||
ControlToolBar * const ctb = mProject->GetControlToolBar();
|
ControlToolBar * const ctb = mProject->GetControlToolBar();
|
||||||
|
ctb->SetPlay(true, ControlToolBar::PlayAppearance::Scrub);
|
||||||
ctb->UpdateStatusBar(mProject);
|
ctb->UpdateStatusBar(mProject);
|
||||||
mProject->GetTrackPanel()->HandleCursor(event);
|
mProject->GetTrackPanel()->HandleCursor(event);
|
||||||
}
|
}
|
||||||
@ -312,17 +313,18 @@ void Scrubber::StopScrubbing()
|
|||||||
{
|
{
|
||||||
mScrubStartPosition = -1;
|
mScrubStartPosition = -1;
|
||||||
mSmoothScrollingScrub = false;
|
mSmoothScrollingScrub = false;
|
||||||
|
const auto ctb = mProject->GetControlToolBar();
|
||||||
|
|
||||||
if (IsScrubbing())
|
if (IsScrubbing())
|
||||||
{
|
{
|
||||||
if (gAudioIO->IsBusy()) {
|
if (gAudioIO->IsBusy()) {
|
||||||
ControlToolBar *const ctb = mProject->GetControlToolBar();
|
|
||||||
ctb->StopPlaying();
|
ctb->StopPlaying();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
return;
|
// Didn't really play, but did change button apperance
|
||||||
|
ctb->SetPlay(false, ControlToolBar::PlayAppearance::Straight);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Scrubber::IsScrubbing() const
|
bool Scrubber::IsScrubbing() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user