mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
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:
parent
31b451d4f3
commit
fcc0624b74
@ -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()
|
||||
|
||||
# }}}
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user