1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Add additional checks for macro output directory.

This bug still available in case: using old settings file or manual set it into settings file.
This commit is contained in:
gera
2021-07-05 01:25:03 +03:00
committed by Dmitry Vedenko
parent 368ab6f888
commit f2a0d918a2
4 changed files with 27 additions and 18 deletions

View File

@@ -63,6 +63,11 @@ void DoExport(AudacityProject &project, const FileExtension &format)
// We either use a configured output path,
// or we use the default documents folder - just as for exports.
FilePath pathName = FileNames::FindDefaultPath(FileNames::Operation::MacrosOut);
if (!FileNames::WritableLocationCheck(pathName))
{
return;
}
/*
// If we've gotten to this point, we are in batch mode, have a file format,
// and the project has either been saved or a file has been imported. So, we