Browse Source

Disable auto translate of FileDialog's file list

Haoyu Qiu 9 months ago
parent
commit
b131476d40
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/gui/file_dialog.cpp

+ 1 - 0
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);