mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Correct problem where the booklist doesn't refresh after changing/adding/deleting a vl name. Clearing the cache isn't sufficient.
This problem isn't related to the new cache. It has been there for a long time
This commit is contained in:
parent
b852195a2c
commit
48c00fd9f7
@ -352,6 +352,7 @@ class SearchRestrictionMixin(object):
|
||||
virt_libs[name] = search
|
||||
db.new_api.set_pref('virtual_libraries', virt_libs)
|
||||
db.new_api.clear_search_caches()
|
||||
self.library_view.model().db.refresh()
|
||||
|
||||
def do_create_edit(self, name=None):
|
||||
db = self.library_view.model().db
|
||||
@ -498,6 +499,7 @@ class SearchRestrictionMixin(object):
|
||||
'confirm_vl_removal', parent=self):
|
||||
return
|
||||
self._remove_vl(name, reapply=True)
|
||||
self.library_view.model().db.refresh()
|
||||
|
||||
def choose_vl_triggerred(self):
|
||||
from calibre.gui2.tweak_book.widgets import QuickOpen, emphasis_style
|
||||
|
Loading…
x
Reference in New Issue
Block a user