Fix #2056793 [ebook-edit: Keyboard navigation error in file browser](https://bugs.launchpad.net/calibre/+bug/2056793)

This commit is contained in:
Kovid Goyal 2024-03-12 07:01:47 +05:30
parent cf0ad84d57
commit 4b88d010ef
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -1518,6 +1518,7 @@ class Boss(QObject):
self.apply_container_update_to_gui()
if master in editors:
self.show_editor(master)
self.gui.file_list.merge_completed(master)
self.gui.message_popup(_('{} files merged').format(len(names)))
@in_thread_job

View File

@ -1274,6 +1274,9 @@ class FileListWidget(QWidget):
self.setFocusProxy(self.file_list)
self.edit_next_file = self.file_list.edit_next_file
def merge_completed(self, master_name):
self.file_list.select_name(master_name, set_as_current_index=True)
def build(self, container, preserve_state=True):
self.file_list.build(container, preserve_state=preserve_state)