Wikipedia: always show final image download count (#16158)

Same method as for "Packing EPUB…"

References <https://github.com/koreader/koreader/pull/16135#issuecomment-5889129098>.
This commit is contained in:
Frans de Jonge authored and GitHub committed 2026-10-06 10:36:07 +02:00
1 parent 1533bf17ab
commit 3126ac8476
1 file changed
+9
+9
View File
@@ -1665,6 +1665,15 @@ abbr.abbr {
if not download_completed then
cancelled = true
elseif #tasks > 0 then
-- Always show the final count because the progress text only refreshes once a second.
local errors = #failed_images
if errors > 0 then
UI:info(T(_("Retrieving images… %1 / %2 completed (%3 errors)"), #tasks, #tasks, errors))
else
UI:info(T(_("Retrieving images… %1 / %2 completed"), #tasks, #tasks))
end
ffiutil.usleep(600000)
end
-- Report any failures once, rather than interrupting on each one.