Augment "Add Source" button with the number available - #5689
Merged
Conversation
ev-mp
reviewed
Jan 23, 2020
| 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"; |
Contributor
Contributor
Author
There was a problem hiding this comment.
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.
Contributor
There was a problem hiding this comment.
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?
Contributor
|
Can one of the admins verify this patch? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.