From b832d43d985778e36841b7d08cf3db5436f26249 Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Tue, 23 Jan 2024 09:17:47 +0200 Subject: [PATCH] CoverBrowser: fix classic mode update cache (#11398) --- plugins/coverbrowser.koplugin/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/coverbrowser.koplugin/main.lua b/plugins/coverbrowser.koplugin/main.lua index c9154cb9d..6a3b2bc27 100644 --- a/plugins/coverbrowser.koplugin/main.lua +++ b/plugins/coverbrowser.koplugin/main.lua @@ -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