Correct case for global checkbox

This commit is contained in:
Joshua de Reeper 2024-11-01 10:19:18 +00:00
parent 1dbdbcc23d
commit 9499d17650
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -27,7 +27,7 @@ class EmulatedUSBDeviceFrame : public wxFrame
private:
wxCheckBox* m_emulatePortal;
wxCheckBox* m_emulateBase;
wxCheckBox* m_emulate_toypad;
wxCheckBox* m_emulateToypad;
std::array<wxTextCtrl*, nsyshid::MAX_SKYLANDERS> m_skylanderSlots;
std::array<wxTextCtrl*, nsyshid::MAX_FIGURES> m_infinitySlots;
std::array<wxTextCtrl*, 7> m_dimensionSlots;