Revert preset checkbox update logic

This commit is contained in:
Cohee 2023-12-01 11:55:05 +02:00
parent ca24e550a8
commit 19c6370fa5
1 changed files with 1 additions and 1 deletions

View File

@ -2970,7 +2970,7 @@ function onSettingsPresetChange() {
const preset = structuredClone(openai_settings[openai_setting_names[oai_settings.preset_settings_openai]]); const preset = structuredClone(openai_settings[openai_setting_names[oai_settings.preset_settings_openai]]);
const updateInput = (selector, value) => $(selector).val(value).trigger('input'); const updateInput = (selector, value) => $(selector).val(value).trigger('input');
const updateCheckbox = (selector, value) => $(selector).prop('checked', value).trigger('input').trigger('change'); const updateCheckbox = (selector, value) => $(selector).prop('checked', value).trigger('input');
// Allow subscribers to alter the preset before applying deltas // Allow subscribers to alter the preset before applying deltas
eventSource.emit(event_types.OAI_PRESET_CHANGED_BEFORE, { eventSource.emit(event_types.OAI_PRESET_CHANGED_BEFORE, {