Show android device name when connected only one device
(cherry picked from commit 778e982cff
)
This commit is contained in:
parent
3e50d3b4c0
commit
623f7e0db4
1 changed files with 4 additions and 2 deletions
|
@ -82,8 +82,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));
|
||||
|
|
Loading…
Reference in a new issue