mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
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:
parent
9d98287fd6
commit
a8daf6c065
@ -329,10 +329,6 @@ class ChooseLibraryAction(InterfaceAction):
|
|||||||
None, None),
|
None, None),
|
||||||
attr='action_restore_database')
|
attr='action_restore_database')
|
||||||
ac.triggered.connect(self.restore_database, type=Qt.ConnectionType.QueuedConnection)
|
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.maintenance_menu.addAction(ac)
|
||||||
|
|
||||||
self.choose_menu.addMenu(self.maintenance_menu)
|
self.choose_menu.addMenu(self.maintenance_menu)
|
||||||
@ -653,10 +649,6 @@ class ChooseLibraryAction(InterfaceAction):
|
|||||||
if restore_database(db, self.gui):
|
if restore_database(db, self.gui):
|
||||||
self.gui.library_moved(db.library_path)
|
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):
|
def check_library(self):
|
||||||
from calibre.gui2.dialogs.check_library import CheckLibraryDialog, DBCheck
|
from calibre.gui2.dialogs.check_library import CheckLibraryDialog, DBCheck
|
||||||
self.gui.library_view.save_state()
|
self.gui.library_view.save_state()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user