From 79482d3d1bcf0ce7e3940e67a31cf6ef719d03d7 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Tue, 3 Nov 2020 18:44:12 +0100 Subject: [PATCH] Offer to reconnect a network source at anytime (there is no way to really know if it was disconnected) --- ImGuiVisitor.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ImGuiVisitor.cpp b/ImGuiVisitor.cpp index 572ef5b..a4aeb28 100644 --- a/ImGuiVisitor.cpp +++ b/ImGuiVisitor.cpp @@ -544,13 +544,10 @@ 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)) ) - { - // TODO : reload ? - s.setConnection(s.connection()); - } + if ( ImGui::Button("Reconnect", ImVec2(IMGUI_RIGHT_ALIGN, 0)) ) + { + // TODO : reload ? + s.setConnection(s.connection()); }