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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user