mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1858180 [Error when enabling auto scroll on server in paged mode](https://bugs.launchpad.net/calibre/+bug/1858180)
This commit is contained in:
parent
75bf8b69c3
commit
d327cedc82
@ -662,6 +662,6 @@ def auto_scroll_action(action):
|
|||||||
if action is 'toggle':
|
if action is 'toggle':
|
||||||
get_boss().send_message('error', title=_('No auto scroll in paged mode'), msg=_(
|
get_boss().send_message('error', title=_('No auto scroll in paged mode'), msg=_(
|
||||||
'Switch to flow mode (Viewer preferences->Page layout) to enable auto'
|
'Switch to flow mode (Viewer preferences->Page layout) to enable auto'
|
||||||
' scrolling')
|
' scrolling'), is_non_critical=True
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
@ -578,7 +578,11 @@ class View:
|
|||||||
self.show_spine_item_stage2(data)
|
self.show_spine_item_stage2(data)
|
||||||
|
|
||||||
def on_iframe_error(self, 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):
|
def apply_color_scheme(self):
|
||||||
ans = resolve_color_scheme()
|
ans = resolve_color_scheme()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user