Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed legacy network device #13683

Conversation

Noy-Zini
Copy link

Tracked on : [LRS-1220]

@Noy-Zini Noy-Zini requested a review from Nir-Az January 15, 2025 15:42
@@ -466,7 +445,7 @@ int main(int argc, const char** argv) try

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
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
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
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
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 IntelRealSense:development Jan 21, 2025
23 checks passed
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