Browse Source
Merge pull request #9030 from Morph1984/api-disable
configure_graphics: Fix graphics API selection when a game is running
pull/15/merge
Mai
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
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()); |
|
|
|
} |
|
|
|
|