EditorHelp: Fix displaying typed Array links

This commit is contained in:
Danil Alexeev 2023-05-13 16:09:35 +03:00
parent c64afeb017
commit a16b2fc3b6
No known key found for this signature in database
GPG Key ID: 124453E157DA8DC7

View File

@ -320,7 +320,8 @@ void EditorHelp::_add_type(const String &p_type, const String &p_enum) {
if (can_ref) {
if (link_t.ends_with("[]")) {
add_array = true;
link_t = link_t.replace("[]", "");
link_t = link_t.trim_suffix("[]");
display_t = display_t.trim_suffix("[]");
class_desc->push_meta("#Array"); // class
class_desc->add_text("Array");