Minor improvements in connection and IPC (multiple instances not fully

supported yet)
This commit is contained in:
brunoherbelin
2020-10-25 23:14:47 +01:00
parent 7fba62bc49
commit cb6a0aefa4
8 changed files with 69 additions and 18 deletions
+6 -4
View File
@@ -1213,13 +1213,15 @@ void UserInterface::RenderPreview()
{
static char dummy_str[512];
sprintf(dummy_str, "%s", Connection::manager().info().name.c_str());
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
// ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
ImGui::InputText("Name", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
ImGui::Separator();
std::vector<std::string> ls = Streaming::manager().listStreams();
for (auto it = ls.begin(); it != ls.end(); it++)
ImGui::Text("%s", (*it).c_str() );
if (ls.size()>0) {
ImGui::Separator();
for (auto it = ls.begin(); it != ls.end(); it++)
ImGui::Text(" %s", (*it).c_str() );
}
}
ImGui::EndMenu();