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
|
@ -179,7 +179,7 @@ void TextEditor::_update_bookmark_list() {
|
|||
}
|
||||
|
||||
bookmarks_menu->add_item(String::num((int)bookmark_list[i] + 1) + " - \"" + line + "\"");
|
||||
bookmarks_menu->set_item_metadata(bookmarks_menu->get_item_count() - 1, bookmark_list[i]);
|
||||
bookmarks_menu->set_item_metadata(-1, bookmark_list[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue