From 00eeb4b82b23c5f13ae76393c7dafdb77681e759 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 27 Mar 2021 19:06:35 +0100 Subject: [PATCH] OPDSBrowser: Only update the title on plain navigation Previously, it was updated with *acquisitions*, too, which was weird. --- plugins/opds.koplugin/opdsbrowser.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/opds.koplugin/opdsbrowser.lua b/plugins/opds.koplugin/opdsbrowser.lua index 576f8ff64..e245a0f20 100644 --- a/plugins/opds.koplugin/opdsbrowser.lua +++ b/plugins/opds.koplugin/opdsbrowser.lua @@ -736,7 +736,7 @@ function OPDSBrowser:browseSearchable(browse_url, username, password) end function OPDSBrowser:onMenuSelect(item) - self.catalog_title = item.text or _("OPDS Catalog") + self.catalog_title = self.catalog_title or _("OPDS Catalog") -- add catalog if item.callback then item.callback() @@ -746,6 +746,7 @@ function OPDSBrowser:onMenuSelect(item) self:showDownloads(item) -- navigation else + self.catalog_title = item.text or self.catalog_title local connect_callback if item.searchable then connect_callback = function()