1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Bug 2540 - Measure size of correct drive.

Use the TempDir for sizing, rather than as I did previously the default temp dir.
This commit is contained in:
James Crook 2020-09-22 18:43:28 +01:00
parent c478e12b48
commit 4b57a45178

View File

@ -128,7 +128,7 @@ AudacityProject::AudacityProject()
// Make sure there is plenty of space for Sqlite files
wxLongLong freeSpace = 0;
auto path = FileNames::FindDefaultPath(FileNames::Operation::Temp);
auto path = FileNames::TempDir();
if (wxGetDiskSpace(path, NULL, &freeSpace)) {
if (freeSpace < wxLongLong(wxLL(100 * 1048576))) {
ShowErrorDialog(nullptr,