From 3808bf47ca5c219dae130b6d623c3a054754655d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Feb 2024 20:39:15 +0530 Subject: [PATCH] Remove unused current_profile --- src/pyj/read_book/profiles.pyj | 3 ++- src/pyj/session.pyj | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/profiles.pyj b/src/pyj/read_book/profiles.pyj index 83d3cafd7c..e7800b7b11 100644 --- a/src/pyj/read_book/profiles.pyj +++ b/src/pyj/read_book/profiles.pyj @@ -36,7 +36,8 @@ def use_profile(container_id, profile_name, profile_data): container = document.getElementById(container_id) if not container: return - apply_reader_profile(get_session_data(), profile_data) + sd = get_session_data() + apply_reader_profile(sd, profile_data) container.dispatchEvent(new Event('settings_changed')) container.dispatchEvent(new Event('close_panel')) diff --git a/src/pyj/session.pyj b/src/pyj/session.pyj index beaa26b49e..f6fec1192b 100644 --- a/src/pyj/session.pyj +++ b/src/pyj/session.pyj @@ -77,7 +77,6 @@ all_settings = { 'book_search_case_sensitive': {'default': False, 'category': 'read_book', 'is_local': True}, 'reverse_page_turn_zones': {'default': False, 'category': 'read_book', 'is_local': True}, 'gesture_overrides': {'default': {}, 'category': 'read_book'}, - 'current_profile': {'default': None, 'category': 'read_book', 'is_local': True, 'disallowed_in_profile': True}, } defaults = {}