diff options
| author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-21 04:32:21 -0400 |
|---|---|---|
| committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-07-21 10:56:55 -0400 |
| commit | 380be385d174c49deeac0b392c7453a2d2e406de (patch) | |
| tree | 5563ab1ad22884c117199cf8ead9e82344e04f50 /src/yuzu/configuration/shared_widget.cpp | |
| parent | 4ffbd95fa512cab5c348f1c5e33db65351f1be5a (diff) | |
configuration: Use paired settings
Diffstat (limited to 'src/yuzu/configuration/shared_widget.cpp')
| -rw-r--r-- | src/yuzu/configuration/shared_widget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp index 7670475be6..bbcee7488a 100644 --- a/src/yuzu/configuration/shared_widget.cpp +++ b/src/yuzu/configuration/shared_widget.cpp @@ -345,6 +345,10 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu QLayout* layout = new QHBoxLayout(this); layout->setContentsMargins(0, 0, 0, 0); + if (other_setting == nullptr) { + other_setting = setting.PairedSetting(); + } + const bool require_checkbox = other_setting != nullptr && other_setting->TypeId() == typeid(bool); |
