@@ -162,14 +162,15 @@ void rs2::dds_model::ipInputText( std::string label, ip_address & ip )
162162
163163void dds_model::render_dds_config_window ( ux_window & window, std::string & error_message )
164164{
165- const auto window_name = " DDS Configuration" ;
165+ std::string serial = (_device.supports (RS2_CAMERA_INFO_SERIAL_NUMBER )) ? _device.get_info (RS2_CAMERA_INFO_SERIAL_NUMBER ) : " Unknown" ;
166+ std::string window_name = rsutils::string::from () << " DDS Configuration" << " ##" << serial;
166167 if ( _window_open )
167168 {
168169 try
169170 {
170171 _current_config = get_eth_config ( CURRENT_VALUES );
171172 _changed_config = _current_config;
172- ImGui::OpenPopup ( window_name );
173+ ImGui::OpenPopup ( window_name. c_str () );
173174 }
174175 catch ( std::exception e )
175176 {
@@ -199,13 +200,13 @@ void dds_model::render_dds_config_window( ux_window & window, std::string & erro
199200 ImGui::PushStyleColor ( ImGuiCol_ButtonActive, button_color + 0 .1f );
200201
201202
202- if ( ImGui::BeginPopupModal ( window_name, nullptr , flags ) )
203+ if ( ImGui::BeginPopupModal ( window_name. c_str () , nullptr , flags ) )
203204 {
204205 if ( error_message != " " )
205206 ImGui::CloseCurrentPopup ();
206207
207208 // Title
208- const char * title_message = window_name ;
209+ const char * title_message = " DDS Configuration " ;
209210 ImVec2 title_size = ImGui::CalcTextSize ( title_message );
210211 float title_x = ( w - title_size.x - 10 ) / 2 .0f ;
211212 ImGui::SetCursorPos ( { title_x, 10 .0f } );
0 commit comments