diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-07 21:10:06 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-10-07 21:11:26 +0200 |
commit | 1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c (patch) | |
tree | 313781d6a789e5c0227a733e613cfd4794009ee7 | |
parent | Merge pull request #9028 from liamwhite/wtype-limits (diff) | |
download | yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.gz yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.bz2 yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.lz yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.xz yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.zst yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index 87e5d0f48..bd69d04a6 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp @@ -57,9 +57,10 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren UpdateBackgroundColorButton(new_bg_color); }); - ui->api->setEnabled(!UISettings::values.has_broken_vulkan); - ui->api_widget->setEnabled(!UISettings::values.has_broken_vulkan || - Settings::IsConfiguringGlobal()); + ui->api->setEnabled(!UISettings::values.has_broken_vulkan && ui->api->isEnabled()); + ui->api_widget->setEnabled( + (!UISettings::values.has_broken_vulkan || Settings::IsConfiguringGlobal()) && + ui->api_widget->isEnabled()); ui->bg_label->setVisible(Settings::IsConfiguringGlobal()); ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal()); } |