Don't try to autoconnect to incompatible servers, show when a server is incompatible or unavailable
This commit is contained in:
@@ -537,7 +537,7 @@ void scenes::lobby::render(XrTime predicted_display_time, bool should_render)
|
||||
{
|
||||
for(auto&& [cookie, data]: servers)
|
||||
{
|
||||
if (data.visible && (data.autoconnect || force_autoconnect))
|
||||
if (data.visible && (data.autoconnect || force_autoconnect) && data.compatible)
|
||||
{
|
||||
connect(data);
|
||||
}
|
||||
|
||||
@@ -272,10 +272,12 @@ void scenes::lobby::gui_server_list()
|
||||
}
|
||||
vibrate_on_hover();
|
||||
|
||||
if (ImGui::IsItemHovered())
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
|
||||
{
|
||||
if (!data.compatible)
|
||||
ImGui::SetTooltip("Incompatible server version");
|
||||
else if (!data.visible && !data.manual)
|
||||
ImGui::SetTooltip("Server not available");
|
||||
}
|
||||
|
||||
ImGui::PopStyleColor(3);
|
||||
|
||||
Reference in New Issue
Block a user