From 27adf1e48f781346f5cf978cfed56d9e2612de43 Mon Sep 17 00:00:00 2001 From: kaikli Date: Fri, 13 Dec 2024 22:13:11 +0100 Subject: [PATCH] fix path of sync run log file Signed-off-by: kaikli <75146125+kaikli@users.noreply.github.com> --- src/gui/syncrunfilelog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index 5610fb6a02ff7..2d95d134bf488 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -32,7 +32,10 @@ void SyncRunFileLog::start(const QString &folderPath) { const qint64 logfileMaxSize = 10 * 1024 * 1024; // 10MiB - const QString logpath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); + const QString logpath = + !Utility::isWindows() + ? QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + : QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); if(!QDir(logpath).exists()) { QDir().mkdir(logpath); }