OPDSBrowser: Only update the title on plain navigation

Previously, it was updated with *acquisitions*, too, which was weird.
reviewable/pr7457/r1
NiLuJe 3 years ago committed by Frans de Jonge
parent 81eb5f8c49
commit 00eeb4b82b

@ -736,7 +736,7 @@ function OPDSBrowser:browseSearchable(browse_url, username, password)
end end
function OPDSBrowser:onMenuSelect(item) function OPDSBrowser:onMenuSelect(item)
self.catalog_title = item.text or _("OPDS Catalog") self.catalog_title = self.catalog_title or _("OPDS Catalog")
-- add catalog -- add catalog
if item.callback then if item.callback then
item.callback() item.callback()
@ -746,6 +746,7 @@ function OPDSBrowser:onMenuSelect(item)
self:showDownloads(item) self:showDownloads(item)
-- navigation -- navigation
else else
self.catalog_title = item.text or self.catalog_title
local connect_callback local connect_callback
if item.searchable then if item.searchable then
connect_callback = function() connect_callback = function()

Loading…
Cancel
Save