mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Allow negative indexes in ItemList and PopupMenu
This commit is contained in:
parent
d5076439e4
commit
42078dec9f
25 changed files with 163 additions and 59 deletions
|
@ -641,7 +641,7 @@ void ScriptCreateDialog::_update_template_menu() {
|
|||
if (!templates_found.is_empty()) {
|
||||
if (!separator) {
|
||||
template_menu->add_separator();
|
||||
template_menu->set_item_text(template_menu->get_item_count() - 1, display_name);
|
||||
template_menu->set_item_text(-1, display_name);
|
||||
separator = true;
|
||||
}
|
||||
for (ScriptLanguage::ScriptTemplate &t : templates_found) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue