Skip to content

Commit

Permalink
fix(linux gui): allow rescan of DSU controllers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Galacs committed Feb 7, 2025
1 parent a6fb0a4 commit 74c51d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/input/InputAPIAddWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 74c51d7

Please sign in to comment.