InputSettings: Refresh panels on profile load and other operations

This commit is contained in:
Exzap 2022-11-06 00:17:48 +01:00
parent 3df8217a02
commit 948460cad7

View File

@ -418,7 +418,15 @@ void InputSettings2::update_state()
// enabled correct panel for active controller // enabled correct panel for active controller
if (active_api && emulated_controller && emulated_controller->type() == active_api.value()) if (active_api && emulated_controller && emulated_controller->type() == active_api.value())
{
// same controller type panel already shown, refresh content of panels
for (auto* panel : page_data.m_panels)
{
if (panel)
panel->load_controller(page_data.m_controller);
}
return; return;
}
// hide all panels // hide all panels
for (auto* panel : page_data.m_panels) for (auto* panel : page_data.m_panels)