summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-16 09:22:36 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-16 09:22:36 +0200
commit14c602f032a7932e801292d8277b98baaa232bfb (patch)
tree1fe68595b1bb698f7c0e8202bb2e6ab62dbe4f42
parenta981a8061f5b3946ee28a3162bcf276173d8b01a (diff)
parent2f016c521fdcbb89f58a6326be32b2e7ac52e8c5 (diff)
Merge pull request #65854 from YeldhamDev/add_element_fix
Fix empty text in the add button when editing nodes with items
-rw-r--r--editor/editor_inspector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 9e7314bf50..08c731cba5 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -3038,7 +3038,7 @@ void EditorInspector::update_tree() {
bool movable = true;
bool numbered = false;
bool foldable = use_folding;
- String add_button_text;
+ String add_button_text = TTR("Add Element");
String swap_method;
for (int i = (p.type == Variant::NIL ? 1 : 2); i < class_name_components.size(); i++) {
if (class_name_components[i].begins_with("page_size") && class_name_components[i].get_slice_count("=") == 2) {