summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-10-08 02:25:23 +0200
committerGitHub <noreply@github.com>2022-10-08 02:25:23 +0200
commit6f101e0f02502b51c13c1d349c0b78f4091f5d3c (patch)
tree642b4107d431fd194287cc8e67a1748416375b05 /src
parentMerge pull request #8807 from Docteh/default_fonts (diff)
parentconfigure_graphics: Fix graphics API selection when a game is running (diff)
downloadyuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar.gz
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar.bz2
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar.lz
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar.xz
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.tar.zst
yuzu-6f101e0f02502b51c13c1d349c0b78f4091f5d3c.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp7
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());
}