mirror of
https://github.com/koreader/koreader.git
synced 2026-12-05 11:38:31 +00:00
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:
1 parent
1533bf17ab
commit
3126ac8476
1 file changed
+9
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user