From fd8a7ce69bbfb0d98e9fab85e3409109f6686123 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 13 Dec 2020 19:58:40 -0600 Subject: [PATCH] Use refresh_screen=False when calling Reading List add/remove, refresh book_ids. --- calibre-plugin/fff_plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/calibre-plugin/fff_plugin.py b/calibre-plugin/fff_plugin.py index 2e3c58a9..6e76dad4 100644 --- a/calibre-plugin/fff_plugin.py +++ b/calibre-plugin/fff_plugin.py @@ -2499,7 +2499,8 @@ class FanFicFarePlugin(InterfaceAction): #print("add good read l:(%s)"%l) addremovefunc(l, book_ids, - display_warnings=False) + display_warnings=False, + refresh_screen=False) else: if l != '': message="

"+_("You configured FanFicFare to automatically update Reading List '%s', but you don't have a list of that name?")%l+"

" @@ -2517,11 +2518,14 @@ class FanFicFarePlugin(InterfaceAction): rl_plugin.add_books_to_list(l, #add_book_ids, book_ids, - display_warnings=False) + display_warnings=False, + refresh_screen=False) else: if l != '': message="

"+_("You configured FanFicFare to automatically update Reading List '%s', but you don't have a list of that name?")%l+"

" confirm(message,'fff_no_reading_list_%s'%l, self.gui, show_cancel_button=False) + self.gui.library_view.model().refresh_ids(book_ids) + self.gui.tags_view.recount() def make_mi_from_book(self,book): if prefs['titlecase']: