mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Await settings load
This commit is contained in:
parent
2b2a29554d
commit
94ef9e8908
@ -502,4 +502,4 @@
|
|||||||
#horde_model {
|
#horde_model {
|
||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -608,4 +608,4 @@ ul.li-padding-bot5 li {
|
|||||||
|
|
||||||
ul.li-padding-bot10 li {
|
ul.li-padding-bot10 li {
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
@ -5456,4 +5456,4 @@ body:not(.movingUI) .drawer-content.maximized {
|
|||||||
|
|
||||||
#advanced-formatting-button div[contenteditable="true"] {
|
#advanced-formatting-button div[contenteditable="true"] {
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user