mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: cycle request when ModelThumbnail failed
Change-Id: Id3faa194b9cc5b8a7d54007fd7d15dd9d054955f
This commit is contained in:
@@ -814,8 +814,10 @@ void PrinterFileSystem::UpdateFocusThumbnail2(std::shared_ptr<std::vector<File>>
|
|||||||
if (type == ModelThumbnail) {
|
if (type == ModelThumbnail) {
|
||||||
for (auto &file : *files) {
|
for (auto &file : *files) {
|
||||||
auto thumbnail = file.metadata["Thumbnail"];
|
auto thumbnail = file.metadata["Thumbnail"];
|
||||||
if (!thumbnail.empty())
|
if (!thumbnail.empty()) {
|
||||||
arr.push_back(file.path + "#" + thumbnail);
|
arr.push_back(file.path + "#" + thumbnail);
|
||||||
|
file.flags &= ~FF_THUMNAIL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (arr.empty()) {
|
if (arr.empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user