From 3126ac84769cb49728ee69331640df44bbd2a3da Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Tue, 6 Oct 2026 10:36:07 +0200 Subject: [PATCH] Wikipedia: always show final image download count (#16158) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same method as for "Packing EPUB…" References . --- frontend/ui/wikipedia.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/ui/wikipedia.lua b/frontend/ui/wikipedia.lua index 19358591c..5926b92be 100644 --- a/frontend/ui/wikipedia.lua +++ b/frontend/ui/wikipedia.lua @@ -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.