diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-13 09:57:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-13 09:57:48 +0200 |
commit | 36e51a8d7e261642958eb18ff1b4ac61673f3b3b (patch) | |
tree | d6e96a382b33e65b47737990a92e9c35ba0d08cf /editor | |
parent | f2002afae79a8b7825fbb02e05a8e4ac7229f8f6 (diff) | |
parent | 778e982cff3092545651f8fd5fd4e204d8b117de (diff) |
Merge pull request #42737 from volzhs/android-run-tooltip
Show android device name when connected only one device
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_run_native.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/editor_run_native.cpp b/editor/editor_run_native.cpp index 422534a2e1..639da371bd 100644 --- a/editor/editor_run_native.cpp +++ b/editor/editor_run_native.cpp @@ -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)); |