mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Refresh book details after adding extra files in case the link isn't alreadyy showing.
This commit is contained in:
parent
ef05b19024
commit
1a5bf9ffa8
@ -158,6 +158,8 @@ class AddAction(InterfaceAction):
|
|||||||
db = self.gui.current_db.new_api
|
db = self.gui.current_db.new_api
|
||||||
for book_id in ids:
|
for book_id in ids:
|
||||||
db.add_extra_files(book_id, rmap)
|
db.add_extra_files(book_id, rmap)
|
||||||
|
self.gui.library_view.model().refresh_ids(ids,
|
||||||
|
current_row=self.gui.library_view.currentIndex().row())
|
||||||
|
|
||||||
def _add_formats(self, paths, ids):
|
def _add_formats(self, paths, ids):
|
||||||
if len(ids) > 1 and not question_dialog(
|
if len(ids) > 1 and not question_dialog(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user