mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-15 07:40:04 +00:00
config(qt): Use qt_config directly to read config
ReadSetting with the default is a convenience function reading settings, not for use in an internal environment. It tries to manage the default value of a setting.
This commit is contained in:
parent
7aa848080d
commit
09e265c116
@ -1271,9 +1271,11 @@ void Config::ReadSettingGeneric(Settings::BasicSetting* const setting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (global || !use_global) {
|
if (global || !use_global) {
|
||||||
const bool is_default = ReadSetting(name + QStringLiteral("/default"), true).value<bool>();
|
const bool is_default =
|
||||||
|
qt_config->value(name + QStringLiteral("/default"), true).value<bool>();
|
||||||
if (!is_default) {
|
if (!is_default) {
|
||||||
setting->LoadString(ReadSetting(name, default_value).value<QString>().toStdString());
|
setting->LoadString(
|
||||||
|
qt_config->value(name, default_value).value<QString>().toStdString());
|
||||||
} else {
|
} else {
|
||||||
// Empty string resets the Setting to default
|
// Empty string resets the Setting to default
|
||||||
setting->LoadString("");
|
setting->LoadString("");
|
||||||
|
Loading…
Reference in New Issue
Block a user