diff --git a/src/pyj/book_list/prefs.pyj b/src/pyj/book_list/prefs.pyj index aa8c9d8989..f38b172afe 100644 --- a/src/pyj/book_list/prefs.pyj +++ b/src/pyj/book_list/prefs.pyj @@ -225,7 +225,7 @@ def reset_to_defaults(): w.reset_to_default() -def prefs_panel_handler(title, get_prefs_data, on_close=None, icon='close'): +def prefs_panel_handler(title_func, get_prefs_data, on_close=None, icon='close'): def close_action(): if on_close is not None: @@ -234,7 +234,7 @@ def prefs_panel_handler(title, get_prefs_data, on_close=None, icon='close'): def init_prefs_panel(container_id): container = document.getElementById(container_id) - create_top_bar(container, title=title, action=close_action, icon=icon) + create_top_bar(container, title=title_func(), action=close_action, icon=icon) container.appendChild(E.div()) create_prefs_widget(container.lastChild, get_prefs_data()) diff --git a/src/pyj/book_list/search.pyj b/src/pyj/book_list/search.pyj index 071d9bc04f..45a23283f8 100644 --- a/src/pyj/book_list/search.pyj +++ b/src/pyj/book_list/search.pyj @@ -509,7 +509,7 @@ def get_prefs(): ] def tb_config_panel_handler(): - return prefs_panel_handler(_('Configure Tag browser'), get_prefs) + return prefs_panel_handler(def(): return _('Configure Tag browser');, get_prefs) # }}}