Skip to content

Commit

Permalink
Show android device name when connected only one device
Browse files Browse the repository at this point in the history
  • Loading branch information
volzhs committed Oct 12, 2020
1 parent c35005b commit 778e982
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions editor/editor_run_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ void EditorRunNative::_notification(int p_what) {
} else {
mb->get_popup()->clear();
mb->show();
mb->set_tooltip(eep->get_options_tooltip());
if (dc > 1) {
if (dc == 1) {
mb->set_tooltip(eep->get_option_tooltip(0));
} else {
mb->set_tooltip(eep->get_options_tooltip());
for (int i = 0; i < dc; i++) {
mb->get_popup()->add_icon_item(eep->get_option_icon(i), eep->get_option_label(i));
mb->get_popup()->set_item_tooltip(mb->get_popup()->get_item_count() - 1, eep->get_option_tooltip(i));
Expand Down

0 comments on commit 778e982

Please sign in to comment.