AUP3: Make the AUP3/AUP file types consistent

This commit is contained in:
Leland Lucius 2020-07-15 11:58:45 -05:00
parent 3954998083
commit 79b8c65f60
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ const FileNames::FileType
FileNames::AllFiles{ XO("All files"), { wxT("") } }
/* i18n-hint an Audacity project is the state of the program, stored as
files that can be reopened to resume the session later */
, FileNames::AudacityProjects{ XO("Audacity projects"), { wxT("aup3") }, true }
, FileNames::AudacityProjects{ XO("AUP3 project files"), { wxT("aup3") }, true }
, FileNames::DynamicLibraries{
#if defined(__WXMSW__)
XO("Dynamically Linked Libraries"), { wxT("dll") }, true

View File

@ -186,6 +186,8 @@ Importer::GetFileTypes( const FileNames::FileType &extraType )
if ( !extraType.extensions.empty() )
fileTypes.push_back( extraType );
else
fileTypes.push_back(FileNames::AudacityProjects);
FileNames::FileTypes l;
for(const auto &importPlugin : sImportPluginList())
@ -194,8 +196,6 @@ Importer::GetFileTypes( const FileNames::FileType &extraType )
importPlugin->GetSupportedExtensions());
}
l.push_back({XO("AUP3 project files"), {wxT("aup3")}});
using ExtensionSet = std::unordered_set< FileExtension >;
FileExtensions allList = extraType.extensions, newList;
ExtensionSet allSet{ allList.begin(), allList.end() }, newSet;

View File

@ -49,7 +49,7 @@
#include <map>
#define DESC XO("AUP project files")
#define DESC XO("AUP project files (*.aup)")
static const auto exts = {wxT("aup")};