FIX: PrinterFileSystem less thumbnail batch count to 2
Change-Id: If741fa8a394ab510f0bf15fa90cd43c8f14a7c80 Jira: none
This commit is contained in:
parent
068ff9d1ed
commit
bc8f79e2fe
|
@ -1,4 +1,4 @@
|
||||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M3 8.9375L6.45062 11.6772C6.67263 11.8535 6.99663 11.8101 7.16447 11.5817L12 5" stroke="white" stroke-linecap="round"/>
|
<path d="M3 8.9375L6.45062 11.6772C6.67263 11.8535 6.99663 11.8101 7.16447 11.5817L12 5" stroke="#00AE42" stroke-linecap="round"/>
|
||||||
<path d="M3 8.9375L6.45062 11.6772C6.67263 11.8535 6.99663 11.8101 7.16447 11.5817L12 5" stroke="white" stroke-opacity="0.2" stroke-linecap="round"/>
|
<path d="M3 8.9375L6.45062 11.6772C6.67263 11.8535 6.99663 11.8101 7.16447 11.5817L12 5" stroke="#00AE42" stroke-opacity="0.2" stroke-linecap="round"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 386 B |
|
@ -1011,6 +1011,9 @@ void ExtruderGroup::update_ams()
|
||||||
info1.cans.push_back({});
|
info1.cans.push_back({});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (btn_edit == nullptr)
|
||||||
|
return;
|
||||||
|
|
||||||
page_num = (ams_n4 * 2 + ams_n1 + 3) / 4;
|
page_num = (ams_n4 * 2 + ams_n1 + 3) / 4;
|
||||||
size_t i4 = page_cur * 2;
|
size_t i4 = page_cur * 2;
|
||||||
size_t i1 = 0;
|
size_t i1 = 0;
|
||||||
|
|
|
@ -787,7 +787,7 @@ void PrinterFileSystem::UpdateFocusThumbnail()
|
||||||
names.push_back({file.name, ""});
|
names.push_back({file.name, ""});
|
||||||
else
|
else
|
||||||
paths.push_back({file.name, file.path});
|
paths.push_back({file.name, file.path});
|
||||||
if (names.size() >= 5 || paths.size() >= 5)
|
if (names.size() >= 2 || paths.size() >= 2)
|
||||||
break;
|
break;
|
||||||
if ((file.flags & FF_THUMNAIL_RETRY) != 0) {
|
if ((file.flags & FF_THUMNAIL_RETRY) != 0) {
|
||||||
const_cast<File&>(file).flags &= ~FF_THUMNAIL_RETRY;
|
const_cast<File&>(file).flags &= ~FF_THUMNAIL_RETRY;
|
||||||
|
|
Loading…
Reference in New Issue