mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Power User: Fix preset error
The checkbox wasn't being looked up correctly, causing issues when setting some properties. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
@ -1161,9 +1161,13 @@ function loadContextSettings() {
|
||||
const $element = $(`#${control.id}`);
|
||||
|
||||
if (control.isCheckbox) {
|
||||
$element.prop('checked', power_user.context[control.property]).trigger('input');
|
||||
$element
|
||||
.prop('checked', control.isGlobalSetting ? power_user[control.property] : power_user.context[control.property])
|
||||
.trigger('input');
|
||||
} else {
|
||||
$element.val(power_user.context[control.property]).trigger('input');
|
||||
$element
|
||||
.val(control.isGlobalSetting ? power_user[control.property] : power_user.context[control.property])
|
||||
.trigger('input');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user