Quote:
Originally Posted by chaley
I know nothing about how Reading List does its job. Does it notify the GUI using model.reset() or model.reset_ids() after changing anything? Does it do a cache.clear_caches()?
|
Not directly. RL calls self.gui.library_view.model().refresh_ids(refresh_ book_ids) (ie, the ids of the books changed) whenever it potentially changes books.
(And gets current from library_view.currentIndex() and calls model().current_changed(current, previous) with a previously saved currentIndex()).
It also
sometimes calls self.gui.tags_view.recount(), but not always. I honestly don't know if that's intentional or oversight.
However, one of the places it
isn't called is remove_books_from_list(), so let's see if adding tag_views.recount() everywhere refresh_ids() is called corrects the issue with some side-effect.
Test version attached.