FIX: cycle request when ModelThumbnail failed

Change-Id: Id3faa194b9cc5b8a7d54007fd7d15dd9d054955f
This commit is contained in:
chunmao.guo 2023-06-15 09:24:41 +08:00 committed by Lane.Wei
parent 2871e77e79
commit fba2431f91
1 changed files with 3 additions and 1 deletions

View File

@ -814,8 +814,10 @@ void PrinterFileSystem::UpdateFocusThumbnail2(std::shared_ptr<std::vector<File>>
if (type == ModelThumbnail) {
for (auto &file : *files) {
auto thumbnail = file.metadata["Thumbnail"];
if (!thumbnail.empty())
if (!thumbnail.empty()) {
arr.push_back(file.path + "#" + thumbnail);
file.flags &= ~FF_THUMNAIL;
}
}
}
if (arr.empty()) {