diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-30 18:26:55 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-30 18:26:55 +0200 |
commit | 7aa848080df1e5672e6df2231f16fa37d68c03bc (patch) | |
tree | 2a135e2eaab7a1b4856796d2b260c7d063f6810f /src | |
parent | config(qt): Write the UiGeneral category (diff) | |
download | yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar.gz yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar.bz2 yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar.lz yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar.xz yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.tar.zst yuzu-7aa848080df1e5672e6df2231f16fa37d68c03bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/configuration/shared_widget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index 410fa80cd..bdb38c8ea 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -495,10 +495,12 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu if (Settings::IsConfiguringGlobal()) { load_func = [this, serializer, checkbox_serializer, require_checkbox, other_setting]() { - if (require_checkbox) { + if (require_checkbox && other_setting->UsingGlobal()) { other_setting->LoadString(checkbox_serializer()); } - setting.LoadString(serializer()); + if (setting.UsingGlobal()) { + setting.LoadString(serializer()); + } }; } else { layout->addWidget(restore_button); |