CoverBrowser: fix classic mode update cache (#11398)

reviewable/pr11408/r1
hius07 3 months ago committed by GitHub
parent f246b3d19c
commit b832d43d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -802,13 +802,13 @@ function CoverBrowser:onDocSettingsItemsChanged(file, doc_settings)
status = doc_settings.summary and doc_settings.summary.status
if not status then return end -- changes not for us
end
if self.ui.file_chooser then
if filemanager_display_mode and self.ui.file_chooser then
self.ui.file_chooser:updateCache(file, status)
end
if self.ui.history and self.ui.history.hist_menu then
if history_display_mode and self.ui.history and self.ui.history.hist_menu then
self.ui.history.hist_menu:updateCache(file, status)
end
if self.ui.collections and self.ui.collections.coll_menu then
if collection_display_mode and self.ui.collections and self.ui.collections.coll_menu then
self.ui.collections.coll_menu:updateCache(file, status)
end
end

Loading…
Cancel
Save