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:
parent
c478e12b48
commit
4b57a45178
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user