Skip to content

Commit

Permalink
Enable adapter combo on emulation state change only if adapters are s…
Browse files Browse the repository at this point in the history
…upported by current backend
  • Loading branch information
CookiePLMonster committed Aug 20, 2019
1 parent 674a66a commit df0ff7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
Expand Up @@ -187,7 +187,8 @@ void GeneralWidget::OnEmulationStateChanged(bool running)
m_backend_combo->setEnabled(!running); m_backend_combo->setEnabled(!running);
m_render_main_window->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() void GeneralWidget::AddDescriptions()
Expand Down

0 comments on commit df0ff7f

Please sign in to comment.