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