Skip to content

Commit

Permalink
fix path of sync run log file
Browse files Browse the repository at this point in the history
Signed-off-by: kaikli <[email protected]>
  • Loading branch information
kaikli authored and kaikli committed Dec 14, 2024
1 parent f389882 commit 5da159e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/syncrunfilelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5da159e

Please sign in to comment.