Fix right click on bookshelf layout button not opening correct preferences widget

This commit is contained in:
Kovid Goyal 2026-01-06 08:21:48 +05:30
parent 265d1ee1fe
commit e8849a0ec1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 3 deletions

View File

@ -74,8 +74,7 @@ class PreferencesAction(InterfaceAction):
if d.do_restart:
self.gui.quit(restart=True)
def do_config(self, checked=False, initial_plugin=None,
close_after_initial=False):
def do_config(self, checked=False, initial_plugin=None, close_after_initial=False):
if self.gui.job_manager.has_jobs():
d = error_dialog(self.gui, _('Cannot configure'),
_('Cannot configure while there are running jobs.'))

View File

@ -185,7 +185,7 @@ class LayoutButton(QToolButton):
tab_name = {
'book_details':'book_details',
'cover_grid':'cover_grid',
'bookshelf_view':'bookshelf_view',
'bookshelf_view':'bookshelf',
'cover_browser':'cover_browser',
'tag_browser':'tag_browser',
'quick_view':'quickview',