Move shallow toggle to config.yaml

This commit is contained in:
Cohee
2025-03-04 23:32:42 +02:00
parent 383806325a
commit 3d813e4ef6
7 changed files with 21 additions and 24 deletions

View File

@ -314,7 +314,6 @@ let power_user = {
forbid_external_media: true,
external_media_allowed_overrides: [],
external_media_forbidden_overrides: [],
shallow_characters: false,
};
let themes = [];
@ -1596,7 +1595,6 @@ async function loadPowerUserSettings(settings, data) {
$('#auto-connect-checkbox').prop('checked', power_user.auto_connect);
$('#auto-load-chat-checkbox').prop('checked', power_user.auto_load_chat);
$('#forbid_external_media').prop('checked', power_user.forbid_external_media);
$('#shallow_characters').prop('checked', power_user.shallow_characters);
for (const theme of themes) {
const option = document.createElement('option');
@ -3890,12 +3888,6 @@ $(document).ready(() => {
await exportTheme();
});
$('#shallow_characters').on('input', function () {
power_user.shallow_characters = !!$(this).prop('checked');
saveSettingsDebounced();
toastr.info('Reload the page for this setting to take effect');
});
$(document).on('click', '#debug_table [data-debug-function]', function () {
const functionId = $(this).data('debug-function');
const functionRecord = debug_functions.find(f => f.functionId === functionId);