Skip to content

Commit

Permalink
CoverBrowser: show cached cover of deleted file in history (#11523)
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 committed Mar 9, 2024
1 parent c65d128 commit 66afeeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/coverbrowser.koplugin/listmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/coverbrowser.koplugin/mosaicmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66afeeb

Please sign in to comment.