Fix #1863438 [After adjusting the auto scroll speed I am jumped back in the book](https://bugs.launchpad.net/calibre/+bug/1863438)

This commit is contained in:
Kovid Goyal 2020-03-05 07:13:19 +05:30
parent 31b451d4f3
commit fcc0624b74
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View File

@ -463,7 +463,7 @@ class PrefsOverlay: # {{{
def on_hide(self):
if self.changes_occurred:
self.changes_occurred = False
ui_operations.redisplay_book()
self.overlay.view.preferences_changed()
# }}}

View File

@ -757,6 +757,10 @@ class View:
show_controls_help()
sd.set('controls_help_shown_count', c + 1)
def preferences_changed(self):
ui_operations.update_url_state(True)
ui_operations.redisplay_book()
def redisplay_book(self):
# redisplay_book() is called when settings are changed
sd = get_session_data()