Browse Source

Disable auto translate of FileDialog's file list

Haoyu Qiu 11 tháng trước cách đây
mục cha
commit
b131476d40
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);