mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-14 17:14:07 +01:00
Update Play button appearance in idle time...
... so most calls to ControlToolBar::SetPlay are removed. One remains in TransportMenus, which will not be problematic for untangling dependencies, and one remains where the toolbar remakes its own buttons. But the routines that start and stop the streams, importantly, don't use it.
This commit is contained in:
@@ -330,7 +330,6 @@ void Scrubber::MarkScrubStart(
|
||||
mSeeking = seek;
|
||||
CheckMenuItems();
|
||||
|
||||
ctb.SetPlay(true, ControlToolBar::PlayAppearance::Straight );
|
||||
// Commented out for Bug 1421
|
||||
// mSeeking
|
||||
// ? ControlToolBar::PlayAppearance::Seek
|
||||
@@ -732,14 +731,6 @@ void Scrubber::StopScrubbing()
|
||||
mDragging = false;
|
||||
mSeeking = false;
|
||||
|
||||
if (!IsScrubbing())
|
||||
{
|
||||
// Marked scrub start, but
|
||||
// didn't really play, but did change button apperance
|
||||
auto &ctb = ControlToolBar::Get( *mProject );
|
||||
ctb.SetPlay(false, ControlToolBar::PlayAppearance::Straight);
|
||||
}
|
||||
|
||||
AdornedRulerPanel::Get( *mProject ).DrawBothOverlays();
|
||||
CheckMenuItems();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user