aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-02 12:20:19 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-08-02 12:20:19 -0400
commit09e265c116ecbdcb61d9d26a1eb886abe2a6d05c (patch)
treeb3f0650c8f2ad904810a30044f4805b36fea4df7 /src
parent7aa848080df1e5672e6df2231f16fa37d68c03bc (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/config.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp
index 880e5f4d6c..01310733d0 100644
--- a/src/yuzu/configuration/config.cpp
+++ b/src/yuzu/configuration/config.cpp
@@ -1271,9 +1271,11 @@ void Config::ReadSettingGeneric(Settings::BasicSetting* const setting) {
}
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) {
- setting->LoadString(ReadSetting(name, default_value).value<QString>().toStdString());
+ setting->LoadString(
+ qt_config->value(name, default_value).value<QString>().toStdString());
} else {
// Empty string resets the Setting to default
setting->LoadString("");