diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-02 18:20:19 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-08-02 18:20:19 +0200 |
commit | 09e265c116ecbdcb61d9d26a1eb886abe2a6d05c (patch) | |
tree | b3f0650c8f2ad904810a30044f4805b36fea4df7 /src | |
parent | shared_widget: Only save global settings as needed (diff) | |
download | yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar.gz yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar.bz2 yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar.lz yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar.xz yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.tar.zst yuzu-09e265c116ecbdcb61d9d26a1eb886abe2a6d05c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/configuration/config.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 880e5f4d6..01310733d 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(""); |