[feat] use client_properties_ and server_properties_ to store streams properties

This commit is contained in:
dijunkun
2024-12-03 17:22:15 +08:00
parent 011919d0e7
commit 1a0c5e8b42
13 changed files with 546 additions and 439 deletions

View File

@@ -177,11 +177,14 @@ int Render::ShowRecentConnections() {
if (ImGui::Button(connect_to_this_connection_button_name.c_str(),
ImVec2(button_width, button_height))) {
remote_id_ = remote_id;
bool remember_password_flag = false;
if (!password.empty() && password.size() == 6) {
remember_password_ = true;
remember_password_flag = true;
memcpy(remote_password_, password.c_str(), 6);
}
memcpy(remote_password_, password.c_str(), 6);
ConnectTo();
ConnectTo(remote_id, remote_password_, remember_password_flag);
}
}
ImGui::SetWindowFontScale(1.0f);