summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2022-10-07 15:10:06 -0400
committerGravatar Morph2022-10-07 15:11:26 -0400
commit1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c (patch)
tree313781d6a789e5c0227a733e613cfd4794009ee7
parentMerge pull request #9028 from liamwhite/wtype-limits (diff)
downloadyuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.gz
yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.tar.xz
yuzu-1e35ade1ecfb37cd8e4f7d5211d5f7a6f0c4cf9c.zip
configure_graphics: Fix graphics API selection when a game is running
The graphics API setting should not be changed when a game is running.
Diffstat (limited to '')
-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
57 UpdateBackgroundColorButton(new_bg_color); 57 UpdateBackgroundColorButton(new_bg_color);
58 }); 58 });
59 59
60 ui->api->setEnabled(!UISettings::values.has_broken_vulkan); 60 ui->api->setEnabled(!UISettings::values.has_broken_vulkan && ui->api->isEnabled());
61 ui->api_widget->setEnabled(!UISettings::values.has_broken_vulkan || 61 ui->api_widget->setEnabled(
62 Settings::IsConfiguringGlobal()); 62 (!UISettings::values.has_broken_vulkan || Settings::IsConfiguringGlobal()) &&
63 ui->api_widget->isEnabled());
63 ui->bg_label->setVisible(Settings::IsConfiguringGlobal()); 64 ui->bg_label->setVisible(Settings::IsConfiguringGlobal());
64 ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal()); 65 ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal());
65} 66}