mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1901410 [Close Virtual library button visible when tabs are shown](https://bugs.launchpad.net/calibre/+bug/1901410)
This commit is contained in:
parent
bdc5554ca9
commit
5c8e92e8c4
@ -426,10 +426,12 @@ class VLTabs(QTabBar): # {{{
|
|||||||
def enable_bar(self):
|
def enable_bar(self):
|
||||||
gprefs['show_vl_tabs'] = True
|
gprefs['show_vl_tabs'] = True
|
||||||
self.setVisible(True)
|
self.setVisible(True)
|
||||||
|
self.gui.set_number_of_books_shown()
|
||||||
|
|
||||||
def disable_bar(self):
|
def disable_bar(self):
|
||||||
gprefs['show_vl_tabs'] = False
|
gprefs['show_vl_tabs'] = False
|
||||||
self.setVisible(False)
|
self.setVisible(False)
|
||||||
|
self.gui.set_number_of_books_shown()
|
||||||
|
|
||||||
def lock_tab(self):
|
def lock_tab(self):
|
||||||
gprefs['vl_tabs_closable'] = False
|
gprefs['vl_tabs_closable'] = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user