mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Move shallow toggle to config.yaml
This commit is contained in:
@@ -113,5 +113,6 @@
|
||||
* @property {string} chat - name of the current chat file chat
|
||||
* @property {string} avatar - file name of the avatar image (acts as a unique identifier)
|
||||
* @property {string} json_data - the full raw JSON data of the character
|
||||
* @property {boolean?} shallow - if the data is shallow (lazy-loaded)
|
||||
*/
|
||||
export default 0;// now this file is a module
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user