View Single Post
Old 08-30-2012, 10:00 AM   #1
Pepin33
Zealot
Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.
 
Posts: 109
Karma: 419
Join Date: Aug 2012
Location: Spain
Device: Kindle Touch
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
Pepin33 is offline   Reply With Quote