some missed refactorings

This commit is contained in:
Juha Jeronen 2024-01-08 00:47:40 +02:00
parent 1184ea2c3b
commit 39c485ab25
1 changed files with 2 additions and 2 deletions

View File

@ -1019,7 +1019,7 @@ async function getExpressionsList() {
}
async function setExpression(character, expression, force) {
if (extension_settings.expressions.local || !extension_settings.expressions.talkinghead) {
if (!isTalkingHeadEnabled()) {
console.debug('entered setExpressions');
await validateImages(character);
const img = $('img.expression');
@ -1284,7 +1284,7 @@ async function onClickExpressionUpload(event) {
e.target.form.reset();
// In talkinghead mode, when a new talkinghead image is uploaded, refresh the live char.
if (extension_settings.expressions.talkinghead && !extension_settings.expressions.local && id === 'talkinghead') {
if (isTalkingHeadEnabled() && id === 'talkinghead') {
await loadTalkingHead();
}
};