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