Fix EditorFileDialog filename default selection

This commit is contained in:
Haoyu Qiu 2022-06-19 10:40:33 +08:00 committed by Relintai
parent c1a9c5007b
commit 36afe803a9

View File

@ -1713,6 +1713,7 @@ EditorFileDialog::EditorFileDialog() {
file = memnew(LineEdit);
file->set_stretch_ratio(4);
file->set_h_size_flags(SIZE_EXPAND_FILL);
file->set_deselect_on_focus_loss_enabled(false);
file_box->add_child(file);
filter = memnew(OptionButton);
filter->set_stretch_ratio(3);