mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
Revert "Bug 2366 - Macros: Run does "Select All" ignoring setting in Tracks Behaviors Preferences"
This reverts commit 1478abf3d0.
Removing until some questions are answered.
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "../ProjectFileManager.h"
|
||||
#include "../ViewInfo.h"
|
||||
#include "../export/Export.h"
|
||||
#include "../SelectUtilities.h"
|
||||
#include "../Shuttle.h"
|
||||
#include "../ShuttleGui.h"
|
||||
#include "../wxFileNameWrapper.h"
|
||||
@@ -48,18 +47,9 @@ void ImportCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
||||
bool ImportCommand::Apply(const CommandContext & context)
|
||||
{
|
||||
bool wasEmpty = TrackList::Get( context.project ).Any().empty();
|
||||
bool success = ProjectFileManager::Get( context.project )
|
||||
bool ImportCommand::Apply(const CommandContext & context){
|
||||
return ProjectFileManager::Get( context.project )
|
||||
.Import(mFileName, false);
|
||||
|
||||
if (success && wasEmpty)
|
||||
{
|
||||
SelectUtilities::SelectAllIfNone( context.project );
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user