mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +02:00
MIDI imports, like other imports, are put into recent files list
This commit is contained in:
parent
1895994bd8
commit
3e39771c53
@ -6827,6 +6827,9 @@ AudacityProject *AudacityProject::DoImportMIDI(
|
||||
|
||||
pProject->ZoomAfterImport(pTrack);
|
||||
pNewProject = nullptr;
|
||||
|
||||
wxGetApp().AddFileToHistory(fileName);
|
||||
|
||||
return pProject;
|
||||
}
|
||||
else
|
||||
|
@ -3075,6 +3075,9 @@ 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
|
||||
if (Importer::IsMidi(fileName))
|
||||
DoImportMIDI(this, fileName);
|
||||
else
|
||||
Import(fileName);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user