Rename PopupMenu's set/get_current_index() to set/get_focused_item()

This commit is contained in:
Michael Alexsander
2022-09-06 10:51:14 -03:00
parent a49ec435b2
commit 9507e91c07
6 changed files with 14 additions and 14 deletions

View File

@ -137,7 +137,7 @@ void MenuBar::_open_popup(int p_index, bool p_focus_item) {
if (p_focus_item) {
for (int i = 0; i < pm->get_item_count(); i++) {
if (!pm->is_item_disabled(i)) {
pm->set_current_index(i);
pm->set_focused_item(i);
break;
}
}