mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-22 09:09:18 +01:00
InputSettings: Refresh panels on profile load and other operations
This commit is contained in:
parent
3df8217a02
commit
948460cad7
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user