Offer to reconnect a network source at anytime (there is no way to

really know if it was disconnected)
This commit is contained in:
brunoherbelin
2020-11-03 18:44:12 +01:00
parent 93e7027f48
commit 79482d3d1b

View File

@@ -544,14 +544,11 @@ void ImGuiVisitor::visit (NetworkSource& s)
ImGui::Text(" - %s (%dx%d)\n - Network host %s:%d", NetworkToolkit::protocol_name[ns->protocol()],
ns->resolution().x, ns->resolution().y, ns->IP().c_str(), ns->port());
if ( !ns->connected()) {
if ( ImGui::Button("Interrupted - Reload", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
if ( ImGui::Button("Reconnect", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
{
// TODO : reload ?
s.setConnection(s.connection());
}
}
}