summaryrefslogtreecommitdiffstats
path: root/editor/dependency_editor.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-03-17 16:28:18 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-03-18 09:31:00 +0800
commit8cd1ebbd6da7505bfa8a32b1e3c2d0fe5810dba2 (patch)
tree5bdd3aeff5a97c2993663bda879f6583558596b7 /editor/dependency_editor.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-8cd1ebbd6da7505bfa8a32b1e3c2d0fe5810dba2.tar.gz
Fix unexpected auto translation of Tree content
Diffstat (limited to 'editor/dependency_editor.cpp')
-rw-r--r--editor/dependency_editor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp
index 5eccc7673a..a178f8e3ec 100644
--- a/editor/dependency_editor.cpp
+++ b/editor/dependency_editor.cpp
@@ -246,6 +246,7 @@ DependencyEditor::DependencyEditor() {
add_child(vb);
tree = memnew(Tree);
+ tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2);
tree->set_column_titles_visible(true);
tree->set_column_title(0, TTR("Resource"));
@@ -672,6 +673,7 @@ DependencyRemoveDialog::DependencyRemoveDialog() {
vb->add_child(text);
owners = memnew(Tree);
+ owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
owners->set_hide_root(true);
vb->add_child(owners);
owners->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@@ -724,6 +726,7 @@ DependencyErrorDialog::DependencyErrorDialog() {
add_child(vb);
files = memnew(Tree);
+ files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_hide_root(true);
vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true);
files->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@@ -879,6 +882,7 @@ OrphanResourcesDialog::OrphanResourcesDialog() {
add_child(vbc);
files = memnew(Tree);
+ files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_columns(2);
files->set_column_titles_visible(true);
files->set_column_custom_minimum_width(1, 100 * EDSCALE);