refactor: Settings allow override file of settings/Deskflow.conf
This commit is contained in:
@ -31,7 +31,6 @@ void Settings::setSettingFile(const QString &settingsFile)
|
||||
|
||||
Settings::Settings(QObject *parent) : QObject(parent)
|
||||
{
|
||||
m_portableSettingsFile = QStringLiteral("settings.ini");
|
||||
if (QFile(m_portableSettingsFile).exists()) {
|
||||
m_settings = new QSettings(m_portableSettingsFile, QSettings::IniFormat);
|
||||
qInfo().noquote() << "settings file:" << m_settings->fileName();
|
||||
|
||||
@ -153,7 +153,7 @@ private:
|
||||
void initSettings();
|
||||
|
||||
QSettings *m_settings = nullptr;
|
||||
QString m_portableSettingsFile = QStringLiteral("%1.conf").arg(kAppName);
|
||||
QString m_portableSettingsFile = QStringLiteral("settings/%1.conf").arg(kAppName);
|
||||
|
||||
// clang-format off
|
||||
inline static const QStringList m_logLevels = {
|
||||
|
||||
Reference in New Issue
Block a user