Merge the Default and Notebook tabs into a single Notebook tab (#7078)

This commit is contained in:
oobabooga 2025-06-16 13:19:29 -03:00 committed by GitHub
parent db67d69ddc
commit de24b3bb31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 46 additions and 12 deletions

View file

@ -274,6 +274,7 @@ def list_interface_input_elements():
# Other elements
elements += [
'show_two_notebook_columns',
'paste_to_attachment',
'include_past_attachments',
]
@ -326,8 +327,7 @@ def save_settings(state, preset, extensions_list, show_controls, theme_state, ma
output[k] = state[k]
output['preset'] = preset
output['prompt-default'] = state['prompt_menu-default']
output['prompt-notebook'] = state['prompt_menu-notebook']
output['prompt-notebook'] = state['prompt_menu-default'] if state['show_two_notebook_columns'] else state['prompt_menu-notebook']
output['character'] = state['character_menu']
output['seed'] = int(output['seed'])
output['show_controls'] = show_controls
@ -505,6 +505,7 @@ def setup_auto_save():
# Session tab (ui_session.py)
'show_controls',
'theme_state',
'show_two_notebook_columns',
'paste_to_attachment',
'include_past_attachments'
]