Skip to content

Commit

Permalink
Change default profile path
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Fish committed Mar 7, 2021
1 parent 090f3ec commit a937191
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Forms/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <QFile>
#include <QJsonDocument>
#include <QSettings>
#include <QStandardPaths>
#include <QTextStream>
#include <QThread>
#include <QTranslator>
Expand All @@ -32,7 +33,8 @@ void validateSettings(QSettings &setting)
{
if (!setting.contains("settings/profiles"))
{
setting.setValue("settings/profiles", QString("%1/profiles.json").arg(QApplication::applicationDirPath()));
QString documentFolder = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation);
setting.setValue("settings/profiles", QString("%1/profiles.json").arg(documentFolder));
}

if (!setting.contains("settings/style"))
Expand Down

0 comments on commit a937191

Please sign in to comment.