You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Do not grab focus on filename LineEdit in EditorFileDialog when outside the tree
This commit is contained in:
@@ -1419,9 +1419,9 @@ void EditorFileDialog::set_current_file(const String &p_file) {
|
|||||||
file->set_text(p_file);
|
file->set_text(p_file);
|
||||||
update_dir();
|
update_dir();
|
||||||
invalidate();
|
invalidate();
|
||||||
_focus_file_text();
|
|
||||||
|
|
||||||
if (is_visible()) {
|
if (is_visible()) {
|
||||||
|
_focus_file_text();
|
||||||
_request_single_thumbnail(get_current_dir().path_join(get_current_file()));
|
_request_single_thumbnail(get_current_dir().path_join(get_current_file()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user