From 6d1e185555763f61eb2fb36615e41f8ced6d3682 Mon Sep 17 00:00:00 2001 From: mwoz123 Date: Sun, 5 Nov 2017 22:04:40 +0100 Subject: [PATCH] NewsDownloader: Number items in processing InfoMessage (#3467) --- plugins/newsdownloader.koplugin/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/newsdownloader.koplugin/main.lua b/plugins/newsdownloader.koplugin/main.lua index a119183ac..658318816 100644 --- a/plugins/newsdownloader.koplugin/main.lua +++ b/plugins/newsdownloader.koplugin/main.lua @@ -167,12 +167,13 @@ function NewsDownloader:loadConfigAndProcessFeeds() local unsupported_feeds_urls = {} + local total_feed_entries = table.getn(feed_config) for idx, feed in ipairs(feed_config) do local url = feed[1] local limit = feed.limit local download_full_article = feed.download_full_article == nil or feed.download_full_article if url and limit then - info = InfoMessage:new{ text = T(_("Processing: %1"), url) } + info = InfoMessage:new{ text = T(_("Processing %1/%2:\n%3"), idx, total_feed_entries, url) } UIManager:show(info) -- processFeedSource is a blocking call, so manually force a UI refresh beforehand UIManager:forceRePaint()