| '+_('Status')+' | '+_('Title')+' | '+_('Author')+' | '+_('Comment')+' | URL |
'
for book in good_list:
@@ -1937,19 +1914,29 @@ class FanFicFarePlugin(InterfaceAction):
do_update_func = self.do_download_list_update
- # log_viewer_unique_name implemented here: https://github.com/kovidgoyal/calibre/compare/v2.56.0...v2.57.0
+ self.do_proceed_question(do_update_func,
+ payload,
+ htmllog,
+ msgl)
+
+ def do_proceed_question(self, update_func, payload, htmllog, msgl):
+ msg = ''+'
\n'.join(msgl)+ '
\n'
if calibre_version >= (2, 57, 0):
- self.gui.proceed_question(do_update_func,
+ # log_viewer_unique_name implemented here: https://github.com/kovidgoyal/calibre/compare/v2.56.0...v2.57.0
+ self.gui.proceed_question(update_func,
payload, htmllog,
- _('FanFicFare log'), _('FanFicFare download complete'), msg,
+ _('FanFicFare log'), _('FanFicFare download complete'),
+ msg,
show_copy_button=False,
log_viewer_unique_name="FanFicFare log viewer")
else:
- self.gui.proceed_question(do_update_func,
+ self.gui.proceed_question(update_func,
payload, htmllog,
- _('FanFicFare log'), _('FanFicFare download complete'), msg,
+ _('FanFicFare log'), _('FanFicFare download complete'),
+ msg,
show_copy_button=False)
+
def do_download_merge_update(self, payload):
with busy_cursor():
db = self.gui.current_db
@@ -2497,7 +2484,7 @@ class FanFicFarePlugin(InterfaceAction):
except:
if prefs['addtolists'] or prefs['addtoreadlists']:
message=""+_("You configured FanFicFare to automatically update Reading Lists, but you don't have the %s plugin installed anymore?")%'Reading List'+"
"
- confirm(message,'fff_no_reading_list_plugin', self.gui, show_cancel_button=False)
+ confirm(message,'fff_no_reading_list_plugin', self.gui, show_cancel_button=False, title=_("Warning"))
return
if prefs['addtoreadlists']:
@@ -2509,7 +2496,7 @@ class FanFicFarePlugin(InterfaceAction):
lists = self.get_clean_reading_lists(prefs['read_lists'])
if len(lists) < 1 :
message=""+_("You configured FanFicFare to automatically update \"To Read\" Reading Lists, but you don't have any lists set?")+"
"
- confirm(message,'fff_no_read_lists', self.gui, show_cancel_button=False)
+ confirm(message,'fff_no_read_lists', self.gui, show_cancel_button=False, title=_("Warning"))
for l in lists:
if l in rl_plugin.get_list_names():
#print("add good read l:(%s)"%l)
@@ -2520,13 +2507,13 @@ class FanFicFarePlugin(InterfaceAction):
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)
+ confirm(message,'fff_no_reading_list_%s'%l, self.gui, show_cancel_button=False, title=_("Warning"))
if prefs['addtolists'] and (add or (prefs['addtolistsonread'] and prefs['addtoreadlists']) ):
lists = self.get_clean_reading_lists(prefs['send_lists'])
if len(lists) < 1 :
message=""+_("You configured FanFicFare to automatically update \"Send to Device\" Reading Lists, but you don't have any lists set?")+"
"
- confirm(message,'fff_no_send_lists', self.gui, show_cancel_button=False)
+ confirm(message,'fff_no_send_lists', self.gui, show_cancel_button=False, title=_("Warning"))
for l in lists:
if l in rl_plugin.get_list_names():
@@ -2539,7 +2526,7 @@ class FanFicFarePlugin(InterfaceAction):
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)
+ confirm(message,'fff_no_reading_list_%s'%l, self.gui, show_cancel_button=False, title=_("Warning"))
self.gui.library_view.model().refresh_ids(book_ids)
self.gui.tags_view.recount()