mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-20 13:38:49 +01:00
Merge branch 'staging' into parser-followup-2
This commit is contained in:
commit
7a99a068e6
@ -2294,14 +2294,13 @@ async function generatePicture(initiator, args, trigger, message, callback) {
|
||||
let imagePath = '';
|
||||
|
||||
const stopListener = () => abortController.abort('Aborted by user');
|
||||
const mesStop = document.getElementById('mes_stop');
|
||||
|
||||
try {
|
||||
const combineNegatives = (prefix) => { negativePromptPrefix = combinePrefixes(negativePromptPrefix, prefix); };
|
||||
const prompt = await getPrompt(generationType, message, trigger, quietPrompt, combineNegatives);
|
||||
console.log('Processed image prompt:', prompt);
|
||||
|
||||
mesStop?.addEventListener('click', stopListener);
|
||||
eventSource.once(event_types.GENERATION_STOPPED, stopListener);
|
||||
context.deactivateSendButtons();
|
||||
hideSwipeButtons();
|
||||
|
||||
@ -2316,7 +2315,7 @@ async function generatePicture(initiator, args, trigger, message, callback) {
|
||||
}
|
||||
finally {
|
||||
restoreOriginalDimensions(dimensions);
|
||||
mesStop?.removeEventListener('click', stopListener);
|
||||
eventSource.removeListener(event_types.GENERATION_STOPPED, stopListener);
|
||||
context.activateSendButtons();
|
||||
showSwipeButtons();
|
||||
}
|
||||
|
@ -2875,12 +2875,12 @@ function getWorldEntry(name, data, entry) {
|
||||
});
|
||||
|
||||
const entryState = function () {
|
||||
if (entry.constant === true) {
|
||||
if (entry.disable === true) {
|
||||
return 'disabled';
|
||||
} else if (entry.constant === true) {
|
||||
return 'constant';
|
||||
} else if (entry.vectorized === true) {
|
||||
return 'vectorized';
|
||||
} else if (entry.disable === true) {
|
||||
return 'disabled';
|
||||
} else {
|
||||
return 'normal';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user