mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
some missed refactorings
This commit is contained in:
@ -1019,7 +1019,7 @@ async function getExpressionsList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function setExpression(character, expression, force) {
|
async function setExpression(character, expression, force) {
|
||||||
if (extension_settings.expressions.local || !extension_settings.expressions.talkinghead) {
|
if (!isTalkingHeadEnabled()) {
|
||||||
console.debug('entered setExpressions');
|
console.debug('entered setExpressions');
|
||||||
await validateImages(character);
|
await validateImages(character);
|
||||||
const img = $('img.expression');
|
const img = $('img.expression');
|
||||||
@ -1284,7 +1284,7 @@ async function onClickExpressionUpload(event) {
|
|||||||
e.target.form.reset();
|
e.target.form.reset();
|
||||||
|
|
||||||
// In talkinghead mode, when a new talkinghead image is uploaded, refresh the live char.
|
// 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();
|
await loadTalkingHead();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user