mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:14:36 +02:00
Fix virtual library tabs not being updated when using VL button
This commit is contained in:
parent
b1f31d3dce
commit
eba16881fd
2 changed files with 4 additions and 0 deletions
|
|
@ -345,6 +345,9 @@ def rebuild(self):
|
|||
self.currentChanged.connect(self.tab_changed)
|
||||
self.tabButton(all_idx, self.RightSide).setVisible(False)
|
||||
|
||||
def update_current(self):
|
||||
self.rebuild()
|
||||
|
||||
def contextMenuEvent(self, ev):
|
||||
m = QMenu(self)
|
||||
m.addAction(_('Sort alphabetically'), self.sort_alphabetically)
|
||||
|
|
|
|||
|
|
@ -446,6 +446,7 @@ def apply_virtual_library(self, library=None):
|
|||
db.data.get_base_restriction())
|
||||
self._apply_search_restriction(db.data.get_search_restriction(),
|
||||
db.data.get_search_restriction_name())
|
||||
self.vl_tabs.update_current()
|
||||
|
||||
def build_virtual_library_list(self, menu, handler):
|
||||
db = self.library_view.model().db
|
||||
|
|
|
|||
Loading…
Reference in a new issue