FIX: PrinterFileSystem less thumbnail batch count to 2

Change-Id: If741fa8a394ab510f0bf15fa90cd43c8f14a7c80
Jira: none
(cherry picked from commit bc8f79e2fec6ae568b9f403f21d694659b5dea79)
This commit is contained in:
chunmao.guo 2025-01-17 11:59:34 +08:00 committed by Noisyfox
parent 7a7d15c5ef
commit 819e11733a
2 changed files with 4 additions and 1 deletions

View file

@ -1035,6 +1035,9 @@ void ExtruderGroup::update_ams()
info1.cans.push_back({});
}
if (btn_edit == nullptr)
return;
page_num = (ams_n4 * 2 + ams_n1 + 3) / 4;
size_t i4 = page_cur * 2;
size_t i1 = 0;

View file

@ -783,7 +783,7 @@ void PrinterFileSystem::UpdateFocusThumbnail()
names.push_back({file.name, ""});
else
paths.push_back({file.name, file.path});
if (names.size() >= 5 || paths.size() >= 5)
if (names.size() >= 2 || paths.size() >= 2)
break;
if ((file.flags & FF_THUMNAIL_RETRY) != 0) {
const_cast<File&>(file).flags &= ~FF_THUMNAIL_RETRY;