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);
|
pProject->ZoomAfterImport(pTrack);
|
||||||
pNewProject = nullptr;
|
pNewProject = nullptr;
|
||||||
|
|
||||||
|
wxGetApp().AddFileToHistory(fileName);
|
||||||
|
|
||||||
return pProject;
|
return pProject;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3075,7 +3075,10 @@ 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.
|
// 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 (temp.Mid(0, 6) != wxT("<?xml ")) {
|
||||||
// If it's not XML, try opening it as any other form of audio
|
// If it's not XML, try opening it as any other form of audio
|
||||||
Import(fileName);
|
if (Importer::IsMidi(fileName))
|
||||||
|
DoImportMIDI(this, fileName);
|
||||||
|
else
|
||||||
|
Import(fileName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user