We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d271509 + 3df8de4 commit 01fc57fCopy full SHA for 01fc57f
1 file changed
src/WsClient.cpp
@@ -90,6 +90,10 @@ void WsClient::showPublicServerWindow(bool &showPublic)
90
if (ImGui::Begin("Public Servers", nullptr, ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse))
91
{
92
static size_t current_idx{0};
93
+ if (!publicServers.empty() && current_idx >= publicServers.size())
94
+ {
95
+ current_idx = 0;
96
+ }
97
if (ImGui::BeginListBox("Select One"))
98
99
for (size_t i = 0; i < publicServers.size(); ++i)
0 commit comments