mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
CoverBrowser: show cached cover of deleted file in history (#11523)
This commit is contained in:
@@ -265,7 +265,7 @@ function ListMenuItem:update()
|
||||
|
||||
local bookinfo = BookInfoManager:getBookInfo(self.filepath, self.do_cover_image)
|
||||
|
||||
if bookinfo and self.do_cover_image and not bookinfo.ignore_cover then
|
||||
if bookinfo and self.do_cover_image and not bookinfo.ignore_cover and not self.file_deleted then
|
||||
if bookinfo.cover_fetched then
|
||||
if bookinfo.has_cover and not self.menu.no_refresh_covers then
|
||||
if BookInfoManager.isCachedCoverInvalid(bookinfo, cover_specs) then
|
||||
|
||||
@@ -535,7 +535,7 @@ function MosaicMenuItem:update()
|
||||
|
||||
local bookinfo = BookInfoManager:getBookInfo(self.filepath, self.do_cover_image)
|
||||
|
||||
if bookinfo and self.do_cover_image and not bookinfo.ignore_cover then
|
||||
if bookinfo and self.do_cover_image and not bookinfo.ignore_cover and not self.file_deleted then
|
||||
if bookinfo.cover_fetched then
|
||||
if bookinfo.has_cover and not self.menu.no_refresh_covers then
|
||||
if BookInfoManager.isCachedCoverInvalid(bookinfo, cover_specs) then
|
||||
|
||||
Reference in New Issue
Block a user