1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Merge pull request #38994 from nikibobi/fix-file-dialog-favorite

Fix file dialog filename cleared when selecting favorites
This commit is contained in:
Rémi Verschelde
2021-02-19 09:46:17 +01:00
committed by GitHub

View File

@@ -1150,7 +1150,6 @@ void EditorFileDialog::_update_drives() {
void EditorFileDialog::_favorite_selected(int p_idx) { void EditorFileDialog::_favorite_selected(int p_idx) {
dir_access->change_dir(favorites->get_item_metadata(p_idx)); dir_access->change_dir(favorites->get_item_metadata(p_idx));
file->set_text("");
update_dir(); update_dir();
invalidate(); invalidate();
_push_history(); _push_history();