mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 21:41:32 +01:00
Await settings load
This commit is contained in:
parent
2b2a29554d
commit
94ef9e8908
@ -502,4 +502,4 @@
|
||||
#horde_model {
|
||||
height: unset;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -608,4 +608,4 @@ ul.li-padding-bot5 li {
|
||||
|
||||
ul.li-padding-bot10 li {
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
@ -1613,7 +1613,7 @@ async function loadPowerUserSettings(settings, data) {
|
||||
switchReducedMotion();
|
||||
switchCompactInputArea();
|
||||
reloadMarkdownProcessor(power_user.render_formulas);
|
||||
loadInstructMode(data);
|
||||
await loadInstructMode(data);
|
||||
await loadContextSettings();
|
||||
loadMaxContextUnlocked();
|
||||
switchWaifuMode();
|
||||
@ -1767,7 +1767,7 @@ async function loadContextSettings() {
|
||||
|
||||
// If the setting already exists, no need to duplicate it
|
||||
// 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;
|
||||
if (control.isGlobalSetting) {
|
||||
power_user[control.property] = value;
|
||||
|
@ -5456,4 +5456,4 @@ body:not(.movingUI) .drawer-content.maximized {
|
||||
|
||||
#advanced-formatting-button div[contenteditable="true"] {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user