diff --git a/SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp b/SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp index a6858726fa..db09f99b34 100644 --- a/SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp +++ b/SerialPrograms/Source/CommonFramework/GlobalSettingsPanel.cpp @@ -6,13 +6,12 @@ #include #include -#include -#include #include #include #include "Common/Cpp/ColoredText.h" #include "Common/Cpp/Containers/Pimpl.tpp" #include "Common/Cpp/LifetimeSanitizer.h" +#include "Common/Cpp/Filesystem/Filesystem.h" #include "Common/Cpp/Json/JsonValue.h" #include "Common/Cpp/Json/JsonArray.h" #include "Common/Cpp/Json/JsonObject.h" @@ -64,8 +63,8 @@ GlobalSettings::GlobalSettings() "Stats File:
Use the stats file here. Multiple instances of the program can use the same file.", LockMode::LOCK_WHILE_RUNNING, #if defined(__APPLE__) - QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString() + "/UserSettings/PA-Stats.txt", - QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString() + "/UserSettings/PA-Stats.txt" + Filesystem::application_scratch_path().string() + "/UserSettings/PA-Stats.txt", + Filesystem::application_scratch_path().string() + "/UserSettings/PA-Stats.txt" #else "UserSettings/PA-Stats.txt", "UserSettings/PA-Stats.txt" @@ -76,8 +75,8 @@ GlobalSettings::GlobalSettings() "Temp Folder:
Place temporary files in this directory.", LockMode::LOCK_WHILE_RUNNING, #if defined(__APPLE__) - QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString() + "/TempFiles/", - QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString() + "/TempFiles/" + Filesystem::application_scratch_path().string() + "/TempFiles/", + Filesystem::application_scratch_path().string() + "/TempFiles/" #else "TempFiles/", "TempFiles/"