mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't classify when no sprites/default. H-center sprite in non-waifu mode
This commit is contained in:
@ -566,6 +566,11 @@ async function moduleWorker() {
|
|||||||
offlineMode.css('display', 'none');
|
offlineMode.css('display', 'none');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't bother classifying if current char has no sprites and no default expressions are enabled
|
||||||
|
if (spriteCache[spriteFolderName].length === 0 && !extension_settings.expressions.showDefault) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// check if last message changed
|
// check if last message changed
|
||||||
if ((lastCharacter === context.characterId || lastCharacter === context.groupId)
|
if ((lastCharacter === context.characterId || lastCharacter === context.groupId)
|
||||||
&& lastMessage === currentLastMessage.mes) {
|
&& lastMessage === currentLastMessage.mes) {
|
||||||
@ -574,6 +579,7 @@ async function moduleWorker() {
|
|||||||
|
|
||||||
// API is busy
|
// API is busy
|
||||||
if (inApiCall) {
|
if (inApiCall) {
|
||||||
|
console.debug('Classification API is busy');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
resize: both;
|
resize: both;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#no_chat_expressions {
|
#no_chat_expressions {
|
||||||
|
Reference in New Issue
Block a user