1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-03 22:19:07 +02:00

Install plug-in by file icon context menu or drop on program icon...

... no longer by drop onto open program window
This commit is contained in:
Paul Licameli 2018-01-03 03:00:02 -05:00
parent b8df8e753b
commit 17b6ca387e

View File

@ -461,16 +461,6 @@ public:
for (const auto &name : sortednames) {
#ifdef EXPERIMENTAL_DRAG_DROP_PLUG_INS
// Is it a plug-in?
if (PluginManager::Get().DropFile(name)) {
mProject->RebuildAllMenuBars();
continue;
}
// No, so import.
#endif
if (Importer::IsMidi(name))
AudacityProject::DoImportMIDI(mProject, name);
else
@ -3043,12 +3033,24 @@ void AudacityProject::OpenFile(const wxString &fileNameArg, bool addtohistory)
// FIXME: //v Surely we could be smarter about this, like checking much earlier that this is a .aup file.
if (temp.Mid(0, 6) != wxT("<?xml ")) {
// If it's not XML, try opening it as any other form of audio
#ifdef EXPERIMENTAL_DRAG_DROP_PLUG_INS
// Is it a plug-in?
if (PluginManager::Get().DropFile(fileName)) {
this->RebuildAllMenuBars();
}
else
// No, so import.
#endif
{
if (Importer::IsMidi(fileName))
DoImportMIDI(this, fileName);
else
Import(fileName);
ZoomAfterImport(nullptr);
}
return;
}