From b131476d40e521fcc133926b29c4d776495ceeb9 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 1 Nov 2024 12:41:56 +0800 Subject: [PATCH] Disable auto translate of FileDialog's file list --- scene/gui/file_dialog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index 18864b12892a..9eda1a256f94 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);