From 948460cad7806f57365fc3b4171154d46aa5c42d Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Sun, 6 Nov 2022 00:17:48 +0100 Subject: [PATCH] InputSettings: Refresh panels on profile load and other operations --- src/gui/input/InputSettings2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/input/InputSettings2.cpp b/src/gui/input/InputSettings2.cpp index 7757a2ae..96b2734b 100644 --- a/src/gui/input/InputSettings2.cpp +++ b/src/gui/input/InputSettings2.cpp @@ -418,7 +418,15 @@ void InputSettings2::update_state() // enabled correct panel for active controller 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; + } // hide all panels for (auto* panel : page_data.m_panels)