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

StopIfPaused is now a member function of ProjectAudioManager

This commit is contained in:
Paul Licameli
2019-07-03 10:27:58 -04:00
parent 2c840a75c5
commit ca8740b510
4 changed files with 13 additions and 12 deletions

View File

@@ -155,7 +155,7 @@ UIHandle::Result CloseButtonHandle::CommitChanges
if (pTrack)
{
auto toRemove = pTrack->SubstitutePendingChangedTrack();
TransportActions::StopIfPaused( *pProject );
ProjectAudioManager::Get( *pProject ).StopIfPaused();
if (!ProjectAudioIO::Get( *pProject ).IsAudioActive()) {
// This pushes an undo item:
TrackUtilities::DoRemoveTrack(*pProject, toRemove.get());