Skip to content

Augment "Add Source" button with the number available - #5689

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
radfordi:add-source-number
Aug 8, 2024
Merged

Augment "Add Source" button with the number available#5689
Nir-Az merged 3 commits into
realsenseai:developmentfrom
radfordi:add-source-number

Conversation

@radfordi

Copy link
Copy Markdown
Contributor

When starting the viewer with two or more devices available, only one is shown. This is disconcerting when you have two devices plugged in. The user might then unplug the device which doesn't show up in the viewer and re-plug it in. This leads to the device showing up as expected, but can lead said user to thinking that the system is flaky and doesn't always detect the second device, when really we have detected it. We have just hid it in the "Add Source" pull down. Showing the number of devices in the button text might help ameliorate these feelings of flakiness.

@ev-mp
ev-mp changed the base branch from master to development January 23, 2020 08:47
ImGui::SetNextWindowPos({ 0, viewer_model.panel_y });

std::string add_source_button_text = to_string() << " " << textual_icons::plus_circle << " Add Source\t\t\t\t\t\t\t\t\t\t\t";
std::string add_source_button_text = to_string() << " " << textual_icons::plus_circle << " Add Source (" << (device_names.size() - device_models->size()) << " available)\t\t\t\t\t\t\t\t\t\t\t";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That is a very nice addition for user experience.
To make an impact I'll look if and how it is possible to convert it into a badge with a notification to make it less verbose and avoid Add Source (0 available) message
image

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.

I suggest merging this now, and then changing the text to an icon in a second PR. I, just this minute, had another person claim that we don't support multiple T265's when we do, but they couldn't tell because of the reasons outlined above.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @radfordi - Thanks a lot for your PR.
It needs to be rebased to our latest development branch - easiest way is to make a new branch starting from our development branch and change the line again there.
Can you do that please?

@Nir-Az
Nir-Az requested a review from remibettan August 7, 2024 13:06

@remibettan remibettan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great - thanks

@sysrsbuild

Copy link
Copy Markdown
Contributor

Can one of the admins verify this patch?

@Nir-Az
Nir-Az merged commit 1a15b37 into realsenseai:development Aug 8, 2024
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.

5 participants