mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
Cleanup dialog v4l2loopback
This commit is contained in:
@@ -1315,6 +1315,7 @@ void UserInterface::RenderPreview()
|
|||||||
static char dummy_str[512];
|
static char dummy_str[512];
|
||||||
sprintf(dummy_str, "sudo apt install v4l2loopback-dkms");
|
sprintf(dummy_str, "sudo apt install v4l2loopback-dkms");
|
||||||
ImGui::Text("Install v4l2loopack:");
|
ImGui::Text("Install v4l2loopack:");
|
||||||
|
ImGui::SetNextItemWidth(600-40);
|
||||||
ImGui::InputText("##cmd1", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputText("##cmd1", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::PushID(358794);
|
ImGui::PushID(358794);
|
||||||
@@ -1324,6 +1325,7 @@ void UserInterface::RenderPreview()
|
|||||||
|
|
||||||
sprintf(dummy_str, "sudo modprobe v4l2loopback exclusive_caps=1 video_nr=10 card_label=\"vimix loopback\"");
|
sprintf(dummy_str, "sudo modprobe v4l2loopback exclusive_caps=1 video_nr=10 card_label=\"vimix loopback\"");
|
||||||
ImGui::Text("Initialize v4l2loopack:");
|
ImGui::Text("Initialize v4l2loopack:");
|
||||||
|
ImGui::SetNextItemWidth(600-40);
|
||||||
ImGui::InputText("##cmd2", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputText("##cmd2", dummy_str, IM_ARRAYSIZE(dummy_str), ImGuiInputTextFlags_ReadOnly);
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::PushID(899872);
|
ImGui::PushID(899872);
|
||||||
@@ -1333,7 +1335,7 @@ void UserInterface::RenderPreview()
|
|||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::SetItemDefaultFocus();
|
ImGui::SetItemDefaultFocus();
|
||||||
if (ImGui::Button("Ok, I'll do it and try again later.", ImVec2(w, 0)) ) {
|
if (ImGui::Button("Thank you, I'll do this and try again later.", ImVec2(w, 0)) ) {
|
||||||
ImGui::CloseCurrentPopup();
|
ImGui::CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user