diff --git a/src/pyj/read_book/overlay.pyj b/src/pyj/read_book/overlay.pyj index 84d6a91f8e..17b7d25aa6 100644 --- a/src/pyj/read_book/overlay.pyj +++ b/src/pyj/read_book/overlay.pyj @@ -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() # }}} diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 62d06c9b5c..b42f9269d9 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -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()