diff options
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp index bde2f6bcfb..883d329473 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp @@ -57,14 +57,15 @@ QGroupBox* MappingWidget::CreateGroupBox(const QString& name, ControllerEmu::Con auto* control_ref = control->control_ref.get(); - connect(button, &MappingButton::AdvancedPressed, [this, control_ref] { + connect(button, &MappingButton::AdvancedPressed, [this, button, control_ref] { if (m_parent->GetDevice() == nullptr) return; IOWindow io(this, m_parent->GetController(), control_ref, control_ref->IsInput() ? IOWindow::Type::Input : IOWindow::Type::Output); io.exec(); - Update(); + SaveSettings(); + button->Update(); }); m_buttons.push_back(button); @@ -111,8 +112,6 @@ void MappingWidget::Update() for (auto* checkbox : m_bools) checkbox->Update(); - - LoadSettings(); } ControllerEmu::EmulatedController* MappingWidget::GetController() const |
