Skip to content

removed legacy network device - #13683

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Noy-Zini:Remove-legacy-network-device-leftovers
Jan 21, 2025
Merged

removed legacy network device#13683
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Noy-Zini:Remove-legacy-network-device-leftovers

Conversation

@Noy-Zini

Copy link
Copy Markdown
Contributor

Tracked on : [LRS-1220]

@Noy-Zini
Noy-Zini requested a review from Nir-Az January 15, 2025 15:42
float line_h = ImGui::GetTextLineHeightWithSpacing() + 2;
float separator_h = new_devices_count > 1 ? ImGui::GetStyle().ItemSpacing.y : 0;
float popup_select_h = line_h * ( new_devices_count + multiline_devices_names ) + separator_h + ( is_ip_device_connected ? 0 : line_h );
float popup_select_h = line_h * ( new_devices_count + multiline_devices_names ) + separator_h ;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont we need to add line_h?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was initially a bit confusing, but by default, is_ip_device_connected is set to false. And, displaying the 'Add Network Device' option requires is_ip_device_connected to remain false. In this case, we add line_h to the select dropdown.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand the effect on the UI.
Are you OK with that?
If you think this is correct I will back off and approve :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and I double-checked just in case, and it looks good this way. If I were to add line_h, the "Add Sources" dropdown popup would end up with a redundant empty line.

@Nir-Az
Nir-Az merged commit 0cf45c0 into realsenseai:development Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants