Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoverBrowser: show cached cover of deleted file in history #11523

Merged
merged 2 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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