Update recent thumbnail after loading bedrock texture

This commit is contained in:
JannisX11 2022-12-13 12:23:52 +01:00
parent edb6d77140
commit b215e7423f

View File

@ -124,6 +124,7 @@ window.BedrockEntityManager = class BedrockEntityManager {
if (render_mode == 'layered') { if (render_mode == 'layered') {
updateLayeredTextures(); updateLayeredTextures();
} }
if (isApp) setTimeout(() => updateRecentProjectThumbnail(), 40);
} else if (valid_textures_list.length > 1) { } else if (valid_textures_list.length > 1) {
setTimeout(() => {this.project.whenNextOpen(() => { setTimeout(() => {this.project.whenNextOpen(() => {
@ -200,6 +201,7 @@ window.BedrockEntityManager = class BedrockEntityManager {
if (render_mode == 'layered') { if (render_mode == 'layered') {
updateLayeredTextures(); updateLayeredTextures();
} }
if (isApp) setTimeout(() => updateRecentProjectThumbnail(), 40);
} }
}).show() }).show()
})}, 2) })}, 2)
@ -1043,7 +1045,7 @@ var codec = new Codec('bedrock', {
icon: Format.icon icon: Format.icon
}); });
setTimeout(() => { setTimeout(() => {
if (Project == project) updateRecentProjectThumbnail(); if (Project == project) setTimeout(() => updateRecentProjectThumbnail(), 40);
}, 200) }, 200)
} }
this.parse(model, file.path) this.parse(model, file.path)