1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-15 23:21:12 +02:00

DoPlayStopSelect into ProjectAudioManager; remove button push-down...

... which was redundant with what happens in the yield to idle events in
ProjectAudioManager::Stop.

This removes direct dependency of ProjectAudioManager on ControlToolBar.

And remove another #include we don't need
This commit is contained in:
Paul Licameli
2019-07-03 16:56:23 -04:00
parent ca8740b510
commit b6cd9a2b36
4 changed files with 15 additions and 28 deletions

View File

@@ -661,8 +661,9 @@ void Scrubber::ContinueScrubbingUI()
// Dragging scrub can stop with mouse up
// Stop and set cursor
bool bShift = state.ShiftDown();
TransportActions::DoPlayStopSelect(*mProject, true, bShift);
ProjectAudioManager::Get( *mProject ).Stop();
auto &projectAudioManager = ProjectAudioManager::Get( *mProject );
projectAudioManager.DoPlayStopSelect( true, bShift );
projectAudioManager.Stop();
return;
}
@@ -724,7 +725,8 @@ void Scrubber::StopScrubbing()
const wxMouseState state(::wxGetMouseState());
// Stop and set cursor
bool bShift = state.ShiftDown();
TransportActions::DoPlayStopSelect(*mProject, true, bShift);
auto &projectAudioManager = ProjectAudioManager::Get( *mProject );
projectAudioManager.DoPlayStopSelect(true, bShift);
}
mScrubStartPosition = -1;