Compare commits
2 Commits
261463bbe5
...
68e05503f6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68e05503f6 | ||
|
|
3d8979797c |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "multi-hoster-uploader",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.4",
|
||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -850,12 +850,13 @@ function _renderVirtualRows(tbody) {
|
||||
if (startIdx === _lastVisibleRange.start && endIdx === _lastVisibleRange.end) {
|
||||
const rows = tbody.querySelectorAll('.queue-row');
|
||||
if (rows.length === endIdx - startIdx) {
|
||||
let allMatch = true;
|
||||
for (let i = 0; i < rows.length; i++) {
|
||||
const job = _sortedJobsCache[startIdx + i];
|
||||
if (rows[i].dataset.jobId !== job.id) { break; } // identity mismatch, full rebuild below
|
||||
if (rows[i].dataset.jobId !== job.id) { allMatch = false; break; }
|
||||
_updateRowInPlace(rows[i], job);
|
||||
}
|
||||
return;
|
||||
if (allMatch) return; // all rows updated in-place, no rebuild needed
|
||||
}
|
||||
}
|
||||
_lastVisibleRange = { start: startIdx, end: endIdx };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user