1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-14 17:14:07 +01:00

Bug 1457 - Transport Menu "Scrub" and "Seek" do not correctly indicate when either Scrubbing mode is active

This commit is contained in:
James Crook
2016-08-11 22:30:51 +01:00
parent 35c033d3fa
commit 53bb478600
3 changed files with 4 additions and 2 deletions

View File

@@ -281,6 +281,7 @@ void Scrubber::MarkScrubStart(
mProject->SetAudioIOToken(0);
mSeeking = seek;
CheckMenuItems();
ctb->SetPlay(true, ControlToolBar::PlayAppearance::Straight );
// Commented out for Bug 1421
@@ -291,7 +292,6 @@ void Scrubber::MarkScrubStart(
mScrubStartPosition = xx;
ctb->UpdateStatusBar(mProject);
mOptions.startClockTimeMillis = ::wxGetLocalTimeMillis();
mCancelled = false;
}
@@ -891,6 +891,7 @@ void Scrubber::OnScrubOrSeek(bool seek)
}
mSeeking = seek;
CheckMenuItems();
auto ruler = mProject->GetRulerPanel();
if (ruler)

View File

@@ -136,11 +136,11 @@ public:
void Pause(bool paused);
bool IsPaused() const;
void CheckMenuItems();
private:
void DoScrub(bool seek);
void OnActivateOrDeactivateApp(wxActivateEvent & event);
void CheckMenuItems();
// I need this because I can't push the scrubber as an event handler
// in two places at once.