FIX: retry thumbnail request after refresh file list

Change-Id: I013566743f21df6403fb6bcd835e9e13dd40ddef
This commit is contained in:
chunmao.guo 2022-10-19 15:08:46 +08:00 committed by Lane.Wei
parent 453c005423
commit 5f20d14476
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ void PrinterFileSystem::ListAllFiles()
if (iter1->name == iter2->name) {
iter1->thumbnail = iter2->thumbnail;
iter1->flags = iter2->flags;
if (!iter1->thumbnail.IsOk())
iter1->flags &= ~FF_THUMNAIL;
iter1->progress = iter2->progress;
iter1->path = iter2->path;
++iter1; ++iter2;