Await settings load
| @@ -502,4 +502,4 @@ | |||
| 502 | #horde_model { | 502 | #horde_model { |
| 503 | height: unset; | 503 | height: unset; |
| 504 | } | 504 | } |
| 505 | } | ||
| 505 | \ No newline at end of file | \ No newline at end of file | |
| 505 | } | ||
| @@ -608,4 +608,4 @@ ul.li-padding-bot5 li { | |||
| 608 | 608 | ||
| 609 | ul.li-padding-bot10 li { | 609 | ul.li-padding-bot10 li { |
| 610 | padding-bottom: 10px; | 610 | padding-bottom: 10px; |
| 611 | } | ||
| 611 | \ No newline at end of file | \ No newline at end of file | |
| 611 | } | ||
| @@ -1613,7 +1613,7 @@ async function loadPowerUserSettings(settings, data) { | |||
| 1613 | switchReducedMotion(); | 1613 | switchReducedMotion(); |
| 1614 | switchCompactInputArea(); | 1614 | switchCompactInputArea(); |
| 1615 | reloadMarkdownProcessor(power_user.render_formulas); | 1615 | reloadMarkdownProcessor(power_user.render_formulas); |
| 1616 | loadInstructMode(data); | 1616 | await loadInstructMode(data); |
| 1617 | await loadContextSettings(); | 1617 | await loadContextSettings(); |
| 1618 | loadMaxContextUnlocked(); | 1618 | loadMaxContextUnlocked(); |
| 1619 | switchWaifuMode(); | 1619 | switchWaifuMode(); |
| @@ -1767,7 +1767,7 @@ async function loadContextSettings() { | |||
| 1767 | 1767 | ||
| 1768 | // If the setting already exists, no need to duplicate it | 1768 | // If the setting already exists, no need to duplicate it |
| 1769 | // TODO: Maybe check the power_user object for the setting instead of a flag? | 1769 | // TODO: Maybe check the power_user object for the setting instead of a flag? |
| 1770 | $element.on('input keyUp', async function () { | 1770 | $element.on('input keyup', async function () { |
| 1771 | const value = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText; | 1771 | const value = control.isCheckbox ? !!$(this).prop('checked') : $(this)[0].innerText; |
| 1772 | if (control.isGlobalSetting) { | 1772 | if (control.isGlobalSetting) { |
| 1773 | power_user[control.property] = value; | 1773 | power_user[control.property] = value; |
| @@ -5456,4 +5456,4 @@ body:not(.movingUI) .drawer-content.maximized { | |||
| 5456 | 5456 | ||
| 5457 | #advanced-formatting-button div[contenteditable="true"] { | 5457 | #advanced-formatting-button div[contenteditable="true"] { |
| 5458 | overflow-wrap: anywhere; | 5458 | overflow-wrap: anywhere; |
| 5459 | } | ||
| 5459 | \ No newline at end of file | \ No newline at end of file | |
| 5459 | } | ||