mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-25 17:21:52 +01:00
Input settings: Fix combobox dropdown not working on linux (#500)
This commit is contained in:
parent
50cdaf9a16
commit
01ce523f01
@ -147,6 +147,15 @@ wxWindow* InputSettings2::initialize_page(size_t index)
|
||||
auto* profiles = new wxComboBox(page, wxID_ANY, kDefaultProfileName);
|
||||
sizer->Add(profiles, wxGBPosition(0, 1), wxDefaultSpan, wxALIGN_CENTER_VERTICAL | wxALL | wxEXPAND, 5);
|
||||
|
||||
#if BOOST_OS_LINUX
|
||||
// We rely on the wxEVT_COMBOBOX_DROPDOWN event to trigger filling the profile list,
|
||||
// but on wxGTK the dropdown button cannot be clicked if the list is empty
|
||||
// so as a quick and dirty workaround we fill the list here
|
||||
wxCommandEvent tmpCmdEvt;
|
||||
tmpCmdEvt.SetEventObject(profiles);
|
||||
on_profile_dropdown(tmpCmdEvt);
|
||||
#endif
|
||||
|
||||
if (emulated_controller && emulated_controller->has_profile_name())
|
||||
{
|
||||
profiles->SetValue(emulated_controller->get_profile_name());
|
||||
|
Loading…
Reference in New Issue
Block a user