From 9499d176509a5c5367fec000eb513950b1f5e680 Mon Sep 17 00:00:00 2001 From: Joshua de Reeper Date: Fri, 1 Nov 2024 10:19:18 +0000 Subject: [PATCH] Correct case for global checkbox --- src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp | 10 +++++----- src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp index af1e4d15..c77ae081 100644 --- a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp +++ b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp @@ -132,16 +132,16 @@ wxPanel* EmulatedUSBDeviceFrame::AddDimensionsPage(wxNotebook* notebook) auto* row = new wxBoxSizer(wxHORIZONTAL); - m_emulate_toypad = + m_emulateToypad = new wxCheckBox(box, wxID_ANY, _("Emulate Dimensions Toypad")); - m_emulate_toypad->SetValue( + m_emulateToypad->SetValue( GetConfig().emulated_usb_devices.emulate_dimensions_toypad); - m_emulate_toypad->Bind(wxEVT_CHECKBOX, [this](wxCommandEvent&) { + m_emulateToypad->Bind(wxEVT_CHECKBOX, [this](wxCommandEvent&) { GetConfig().emulated_usb_devices.emulate_dimensions_toypad = - m_emulate_toypad->IsChecked(); + m_emulateToypad->IsChecked(); g_config.Save(); }); - row->Add(m_emulate_toypad, 1, wxEXPAND | wxALL, 2); + row->Add(m_emulateToypad, 1, wxEXPAND | wxALL, 2); box_sizer->Add(row, 1, wxEXPAND | wxALL, 2); auto* top_row = new wxBoxSizer(wxHORIZONTAL); auto* bottom_row = new wxBoxSizer(wxHORIZONTAL); diff --git a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.h b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.h index 0eeb5b2c..78c70a4a 100644 --- a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.h +++ b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.h @@ -27,7 +27,7 @@ class EmulatedUSBDeviceFrame : public wxFrame private: wxCheckBox* m_emulatePortal; wxCheckBox* m_emulateBase; - wxCheckBox* m_emulate_toypad; + wxCheckBox* m_emulateToypad; std::array m_skylanderSlots; std::array m_infinitySlots; std::array m_dimensionSlots;