OPDSBrowser: Only update the title on plain navigation

Previously, it was updated with *acquisitions*, too, which was weird.
This commit is contained in:
NiLuJe
2021-03-27 19:06:35 +01:00
committed by Frans de Jonge
parent 81eb5f8c49
commit 00eeb4b82b

View File

@@ -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()