summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.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/plugins/script_editor_plugin.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-8cd1ebbd6da7505bfa8a32b1e3c2d0fe5810dba2.tar.gz
Fix unexpected auto translation of Tree content
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index edec4af094..fa9bed65d0 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -423,6 +423,7 @@ ScriptEditorQuickOpen::ScriptEditorQuickOpen() {
register_text_enter(search_box);
set_hide_on_ok(false);
search_options->connect("item_activated", callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
+ search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->set_hide_root(true);
search_options->set_hide_folding(true);
search_options->add_theme_constant_override("draw_guides", 1);
@@ -4167,6 +4168,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
disk_changed_list = memnew(Tree);
vbc->add_child(disk_changed_list);
+ disk_changed_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL);
disk_changed->connect("confirmed", callable_mp(this, &ScriptEditor::reload_scripts).bind(false));