mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-19 15:44:20 +01:00
Detect temp dir FAT drive change while Audacity is active
This commit is contained in:
@@ -213,6 +213,21 @@ wxString FileNames::TempDir()
|
||||
if (gPrefs && path.empty())
|
||||
path =
|
||||
gPrefs->Read(PreferenceKey(Operation::Temp, PathType::_None), wxT(""));
|
||||
|
||||
if (IsOnFATFileSystem(path))
|
||||
{
|
||||
ShowErrorDialog(
|
||||
nullptr,
|
||||
XO("Unsuitable"),
|
||||
XO("The temporary files direcotory is on a FAT formatted drive\n"
|
||||
"Resetting to default location."),
|
||||
"Error:_Unsuitable_drive"
|
||||
);
|
||||
|
||||
path = DefaultTempDir();
|
||||
UpdateDefaultPath(FileNames::Operation::Temp, path);
|
||||
}
|
||||
|
||||
return FileNames::MkDir(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user