[fix] fix control bar position when stream window created

This commit is contained in:
dijunkun
2025-04-10 16:46:53 +08:00
parent 193e905b28
commit fcd0488624
8 changed files with 219 additions and 188 deletions

View File

@@ -104,8 +104,8 @@ int Render::ConnectionStatusWindow(
focus_on_input_widget_ = false;
}
ImGui::InputText("##password", remote_password_,
IM_ARRAYSIZE(remote_password_),
ImGui::InputText("##password", props->remote_password_,
IM_ARRAYSIZE(props->remote_password_),
ImGuiInputTextFlags_CharsNoBlank);
ImGui::SetWindowFontScale(0.4f);
@@ -138,7 +138,7 @@ int Render::ConnectionStatusWindow(
if (ImGui::Button(
localization::cancel[localization_language_index_].c_str()) ||
ImGui::IsKeyPressed(ImGuiKey_Escape)) {
memset(remote_password_, 0, sizeof(remote_password_));
memset(props->remote_password_, 0, sizeof(props->remote_password_));
show_connection_status_window_ = false;
focus_on_input_widget_ = true;
}