mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
parent
9a8569d434
commit
68e69fd45b
3 changed files with 6 additions and 5 deletions
|
|
@ -830,11 +830,12 @@ void EditorFileDialog::update_file_list() {
|
|||
d["name"] = files.front()->get();
|
||||
d["dir"] = false;
|
||||
String fullpath = cdir.plus_file(files.front()->get());
|
||||
d["path"] = fullpath;
|
||||
item_list->set_item_metadata(item_list->get_item_count() - 1, d);
|
||||
|
||||
if (display_mode == DISPLAY_THUMBNAILS) {
|
||||
EditorResourcePreview::get_singleton()->queue_resource_preview(fullpath, this, "_thumbnail_result", fullpath);
|
||||
}
|
||||
d["path"] = fullpath;
|
||||
item_list->set_item_metadata(item_list->get_item_count() - 1, d);
|
||||
|
||||
if (file->get_text() == files.front()->get())
|
||||
item_list->set_current(item_list->get_item_count() - 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue