|
|
|
@ -61,12 +61,14 @@
@@ -61,12 +61,14 @@
|
|
|
|
|
|
|
|
|
|
namespace |
|
|
|
|
{ |
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|
QString makeProfileID(const QString &profilePath, const QString &profileName) |
|
|
|
|
{ |
|
|
|
|
return profilePath.isEmpty() |
|
|
|
|
? profileName |
|
|
|
|
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {}); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Preferences *Preferences::m_instance = nullptr; |
|
|
|
@ -90,7 +92,7 @@ void Preferences::freeInstance()
@@ -90,7 +92,7 @@ void Preferences::freeInstance()
|
|
|
|
|
m_instance = nullptr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const |
|
|
|
|
QVariant Preferences::value(const QString &key, const QVariant &defaultValue) const |
|
|
|
|
{ |
|
|
|
|
return SettingsStorage::instance()->loadValue(key, defaultValue); |
|
|
|
|
} |
|
|
|
|