Refresh library view after inserting new books?
I'm working in a plugin to insert, delete or update books in my library.
The updating works ok, but when I insert new books (or delete it) using db.add_books() (or db.delete_book()), changes don't reflect in the main library window. I need to manually change sorting order for see last inserted books (pressing the top of the columns).
I tried using db.refresh() after insert, but nothing happens. I also tried using db.refresh_ids() with the last id inserted, but then I get an error. ¿?
How can I do to refresh the main windows view after inserting or deleting books?
Last edited by Pepin33; 08-30-2012 at 11:17 AM.
Reason: Modify the title
|