Fix #1858180 [Error when enabling auto scroll on server in paged mode](https://bugs.launchpad.net/calibre/+bug/1858180)

This commit is contained in:
Kovid Goyal 2020-01-03 14:12:42 +05:30
parent 75bf8b69c3
commit d327cedc82
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 6 additions and 2 deletions

View File

@ -662,6 +662,6 @@ def auto_scroll_action(action):
if action is 'toggle':
get_boss().send_message('error', title=_('No auto scroll in paged mode'), msg=_(
'Switch to flow mode (Viewer preferences->Page layout) to enable auto'
' scrolling')
' scrolling'), is_non_critical=True
)
return False

View File

@ -578,7 +578,11 @@ class View:
self.show_spine_item_stage2(data)
def on_iframe_error(self, data):
ui_operations.show_error((data.title or _('There was an error processing the book')), data.msg, data.details)
title = data.title or _('There was an error processing the book')
if data.is_non_critical:
warning_dialog(title, data.msg, data.details, on_close=ui_operations.focus_iframe)
return
ui_operations.show_error(title, data.msg, data.details)
def apply_color_scheme(self):
ans = resolve_color_scheme()