1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

New attached structure ProjectFileIO handles load and save

This commit is contained in:
Paul Licameli
2019-05-28 14:55:52 -04:00
parent f7e79406ee
commit 7b8bfd1d02
8 changed files with 279 additions and 211 deletions

View File

@@ -86,8 +86,10 @@ void SaveProjectCommand::PopulateOrExchange(ShuttleGui & S)
bool SaveProjectCommand::Apply(const CommandContext &context)
{
if(mFileName.empty())
return context.project.SaveAs(mbCompress);
auto &projectFileIO = ProjectFileIO::Get( context.project );
if ( mFileName.empty() )
return projectFileIO.SaveAs(mbCompress);
else
return context.project.SaveAs(mFileName,mbCompress,mbAddToHistory);
return projectFileIO.SaveAs(
mFileName, mbCompress, mbAddToHistory);
}