Skip to content

Commit 948460c

Browse files
committed
InputSettings: Refresh panels on profile load and other operations
1 parent 3df8217 commit 948460c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/gui/input/InputSettings2.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,15 @@ void InputSettings2::update_state()
418418

419419
// enabled correct panel for active controller
420420
if (active_api && emulated_controller && emulated_controller->type() == active_api.value())
421+
{
422+
// same controller type panel already shown, refresh content of panels
423+
for (auto* panel : page_data.m_panels)
424+
{
425+
if (panel)
426+
panel->load_controller(page_data.m_controller);
427+
}
421428
return;
429+
}
422430

423431
// hide all panels
424432
for (auto* panel : page_data.m_panels)

0 commit comments

Comments
 (0)