FIX: cycle request when ModelThumbnail failed
Change-Id: Id3faa194b9cc5b8a7d54007fd7d15dd9d054955f
This commit is contained in:
parent
2871e77e79
commit
fba2431f91
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue