mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Await settings load
This commit is contained in:
@ -1613,7 +1613,7 @@ async function loadPowerUserSettings(settings, data) {
|
|||||||
switchReducedMotion();
|
switchReducedMotion();
|
||||||
switchCompactInputArea();
|
switchCompactInputArea();
|
||||||
reloadMarkdownProcessor(power_user.render_formulas);
|
reloadMarkdownProcessor(power_user.render_formulas);
|
||||||
loadInstructMode(data);
|
await loadInstructMode(data);
|
||||||
await loadContextSettings();
|
await loadContextSettings();
|
||||||
loadMaxContextUnlocked();
|
loadMaxContextUnlocked();
|
||||||
switchWaifuMode();
|
switchWaifuMode();
|
||||||
@ -1767,7 +1767,7 @@ async function loadContextSettings() {
|
|||||||
|
|
||||||
// If the setting already exists, no need to duplicate it
|
// If the setting already exists, no need to duplicate it
|
||||||
// TODO: Maybe check the power_user object for the setting instead of a flag?
|
// TODO: Maybe check the power_user object for the setting instead of a flag?
|
||||||
$element.on('input keyUp', async function () {
|
$element.on('input keyup', async function () {
|
||||||
const value = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText;
|
const value = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText;
|
||||||
if (control.isGlobalSetting) {
|
if (control.isGlobalSetting) {
|
||||||
power_user[control.property] = value;
|
power_user[control.property] = value;
|
||||||
|
Reference in New Issue
Block a user