mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Apply a edited VL only if it is already the current VL
This commit is contained in:
parent
2cf5b9e1da
commit
150096e88d
@ -288,6 +288,7 @@ class SearchRestrictionMixin(object):
|
|||||||
if editing:
|
if editing:
|
||||||
self._remove_vl(editing, reapply=False)
|
self._remove_vl(editing, reapply=False)
|
||||||
self.add_virtual_library(db, cd.library_name, cd.library_search)
|
self.add_virtual_library(db, cd.library_name, cd.library_search)
|
||||||
|
if not editing or editing == db.data.get_base_restriction_name():
|
||||||
self.apply_virtual_library(cd.library_name)
|
self.apply_virtual_library(cd.library_name)
|
||||||
|
|
||||||
def virtual_library_clicked(self):
|
def virtual_library_clicked(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user