mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Disable VL tabs when in device view.
This commit is contained in:
parent
71b78a0b5b
commit
1c9c2c745e
@ -722,9 +722,11 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
if location == 'library':
|
if location == 'library':
|
||||||
self.virtual_library_menu.setEnabled(True)
|
self.virtual_library_menu.setEnabled(True)
|
||||||
self.highlight_only_button.setEnabled(True)
|
self.highlight_only_button.setEnabled(True)
|
||||||
|
self.vl_tabs.setEnabled(True)
|
||||||
else:
|
else:
|
||||||
self.virtual_library_menu.setEnabled(False)
|
self.virtual_library_menu.setEnabled(False)
|
||||||
self.highlight_only_button.setEnabled(False)
|
self.highlight_only_button.setEnabled(False)
|
||||||
|
self.vl_tabs.setEnabled(False)
|
||||||
# Reset the view in case something changed while it was invisible
|
# Reset the view in case something changed while it was invisible
|
||||||
self.current_view().reset()
|
self.current_view().reset()
|
||||||
self.set_number_of_books_shown()
|
self.set_number_of_books_shown()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user