mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 07:01:18 +02:00
Bug 1457 - Transport Menu "Scrub" and "Seek" do not correctly indicate when either Scrubbing mode is active
This commit is contained in:
@@ -546,6 +546,7 @@ void Scrubber::StopScrubbing()
|
|||||||
}
|
}
|
||||||
|
|
||||||
mProject->GetRulerPanel()->HideQuickPlayIndicator();
|
mProject->GetRulerPanel()->HideQuickPlayIndicator();
|
||||||
|
CheckMenuItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Scrubber::ShowsBar() const
|
bool Scrubber::ShowsBar() const
|
||||||
@@ -613,6 +614,8 @@ bool Scrubber::Seeks() const
|
|||||||
|
|
||||||
bool Scrubber::Scrubs() const
|
bool Scrubber::Scrubs() const
|
||||||
{
|
{
|
||||||
|
if( Seeks() )
|
||||||
|
return false;
|
||||||
return (HasStartedScrubbing() || IsScrubbing()) && !ChoseSeeking();
|
return (HasStartedScrubbing() || IsScrubbing()) && !ChoseSeeking();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -897,11 +900,13 @@ void Scrubber::OnScrubOrSeek(bool seek)
|
|||||||
void Scrubber::OnScrub(wxCommandEvent&)
|
void Scrubber::OnScrub(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
OnScrubOrSeek(false);
|
OnScrubOrSeek(false);
|
||||||
|
CheckMenuItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scrubber::OnSeek(wxCommandEvent&)
|
void Scrubber::OnSeek(wxCommandEvent&)
|
||||||
{
|
{
|
||||||
OnScrubOrSeek(true);
|
OnScrubOrSeek(true);
|
||||||
|
CheckMenuItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scrubber::OnToggleScrubBar(wxCommandEvent&)
|
void Scrubber::OnToggleScrubBar(wxCommandEvent&)
|
||||||
|
Reference in New Issue
Block a user