summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2024-11-01 12:41:56 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2024-11-01 12:41:56 +0800
commitb131476d40e521fcc133926b29c4d776495ceeb9 (patch)
treef0b50f6db9995368193d2a150b464df01fd5b112
parentc6c464cf9ae56e8b68620af65125dd980d0e8122 (diff)
downloadredot-engine-b131476d40e521fcc133926b29c4d776495ceeb9.tar.gz
Disable auto translate of FileDialog's file list
-rw-r--r--scene/gui/file_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp
index 18864b1289..9eda1a256f 100644
--- a/scene/gui/file_dialog.cpp
+++ b/scene/gui/file_dialog.cpp
@@ -1586,6 +1586,7 @@ FileDialog::FileDialog() {
vbox->add_child(hbc);
tree = memnew(Tree);
+ tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true);
vbox->add_margin_child(ETR("Directories & Files:"), tree, true);