Await settings load
| @@ -1613,7 +1613,7 @@ async function loadPowerUserSettings(settings, data) { | ||
| 1613 | 1613 | switchReducedMotion(); |
| 1614 | 1614 | switchCompactInputArea(); |
| 1615 | 1615 | reloadMarkdownProcessor(power_user.render_formulas); |
| 1616 | 1616 | await loadInstructMode(data); |
| 1617 | 1617 | await loadContextSettings(); |
| 1618 | 1618 | loadMaxContextUnlocked(); |
| 1619 | 1619 | switchWaifuMode(); |
| @@ -1767,7 +1767,7 @@ async function loadContextSettings() { | ||
| 1767 | 1767 | |
| 1768 | 1768 | // If the setting already exists, no need to duplicate it |
| 1769 | 1769 | // TODO: Maybe check the power_user object for the setting instead of a flag? |
| 1770 | 1770 | $element.on('input keyUpkeyup', async function () { |
| 1771 | 1771 | const value = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText; |
| 1772 | 1772 | if (control.isGlobalSetting) { |
| 1773 | 1773 | power_user[control.property] = value; |