Remove the action to clear extra files cache

the extra files cache is an internal implementation detail. I dont want
to expose that so prominently to end users. If in practice it turns out
that the cache becoming stale is a big issue, we can revisit.
This commit is contained in:
Kovid Goyal 2023-04-23 21:59:06 +05:30
parent 9d98287fd6
commit a8daf6c065
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -329,10 +329,6 @@ class ChooseLibraryAction(InterfaceAction):
None, None),
attr='action_restore_database')
ac.triggered.connect(self.restore_database, type=Qt.ConnectionType.QueuedConnection)
ac = self.create_action(spec=(_('Clear extra files cache'), 'lt.png',
None, None),
attr='action_clear_extra_files_cache')
ac.triggered.connect(self.clear_extra_files_cache, type=Qt.ConnectionType.QueuedConnection)
self.maintenance_menu.addAction(ac)
self.choose_menu.addMenu(self.maintenance_menu)
@ -653,10 +649,6 @@ class ChooseLibraryAction(InterfaceAction):
if restore_database(db, self.gui):
self.gui.library_moved(db.library_path)
def clear_extra_files_cache(self):
db = self.gui.library_view.model().db
db.new_api.clear_extra_files_cache()
def check_library(self):
from calibre.gui2.dialogs.check_library import CheckLibraryDialog, DBCheck
self.gui.library_view.save_state()