Merge pull request #8324 from CookiePLMonster/adapter-combo-fix

Enable adapter combo only if adapters are supported by current backend
This commit is contained in:
JosJuice 2019-09-29 00:13:55 +02:00 committed by GitHub
commit 06ab51bceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,8 @@ void GeneralWidget::OnEmulationStateChanged(bool running)
m_backend_combo->setEnabled(!running);
m_render_main_window->setEnabled(!running);
m_adapter_combo->setEnabled(!running);
const bool supports_adapters = !g_Config.backend_info.Adapters.empty();
m_adapter_combo->setEnabled(!running && supports_adapters);
}
void GeneralWidget::AddDescriptions()