mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-02 13:01:18 +12:00
fix(linux gui): allow rescan of DSU controllers
Make the DSUController combo box clickable on linux by adding a placeholder item. This allows updating the controller list after having changed the server settings as is the behavior on other platforms.
This commit is contained in:
parent
a6fb0a48eb
commit
74c51d7204
1 changed files with 6 additions and 0 deletions
|
@ -302,6 +302,12 @@ void InputAPIAddWindow::on_controllers_refreshed(wxCommandEvent& event)
|
|||
|
||||
wxWindowUpdateLocker lock(controllers);
|
||||
controllers->Clear();
|
||||
#if BOOST_OS_LINUX
|
||||
// We add a placeholder to make to list clickable on linux
|
||||
// This allows the user to trigger a refill of the controller list
|
||||
if (has_custom_settings() && available_controllers.empty())
|
||||
m_controller_list->Append(_("No controllers found."), (wxClientData*)nullptr);
|
||||
#endif
|
||||
for (const auto& c : available_controllers)
|
||||
{
|
||||
const auto display_name = c->display_name();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue