Quote:
Originally Posted by kovidgoyal
The canonical way to refresh the GUI after adding books, is the way calibre does it itself, which is:
Code:
self.gui.iactions['Add Books'].refresh_gui(num_of_books_added)
|
Thanks!
But this raised another question for me. When I use the
refresh_ids method (with
current_row argument), the last added book gets selected and everything is refreshed for that book (including Quick View, by using
qv.refresh_quickview(current)).
But when I use the canonical way, after all books are added, the current book is still the same as before the adding action. Also, Quick View does not update*, even if a new book that affects it was added).
* To refresh it, I have to click on another book and then go back to the previously selected book.