mirror of https://github.com/godotengine/godot
Merge pull request #87121 from jsjtxietian/fix-thumbnail-disappear
Fix thumbnail disappears if FileSystemDock is floated
This commit is contained in:
commit
85a918d5a2
|
|
@ -765,7 +765,7 @@ void FileSystemDock::navigate_to_path(const String &p_path) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {
|
void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {
|
||||||
if ((file_list_vb->is_visible_in_tree() || current_path == p_path.get_base_dir()) && p_preview.is_valid()) {
|
if ((file_list_vb->is_visible_in_tree() || current_path.trim_suffix("/") == p_path.get_base_dir()) && p_preview.is_valid()) {
|
||||||
Array uarr = p_udata;
|
Array uarr = p_udata;
|
||||||
int idx = uarr[0];
|
int idx = uarr[0];
|
||||||
String file = uarr[1];
|
String file = uarr[1];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue