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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user