From b7a3f327b06a178402ee12a3542362aeda7b537e Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 7 Mar 2012 10:48:38 -0600 Subject: [PATCH] Minor improvement to column updates for new stories. --- calibre-plugin/ffdl_plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 93f8320..95a28c9 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -640,12 +640,14 @@ make_firstimage_cover:true def _update_books_completed(self, book_list, options={}): add_list = filter(lambda x : x['good'] and x['added'], book_list) + add_ids = [ x['calibre_id'] for x in add_list ] update_list = filter(lambda x : x['good'] and not x['added'], book_list) update_ids = [ x['calibre_id'] for x in update_list ] if len(add_list): ## even shows up added to searchs. Nice. self.gui.library_view.model().books_added(len(add_list)) + self.gui.library_view.model().refresh_ids(add_ids) if update_ids: self.gui.library_view.model().refresh_ids(update_ids)