mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix message buttons being hidden on auto-swipe reply stopped
This commit is contained in:
@ -1647,7 +1647,6 @@ class StreamingProcessor {
|
|||||||
activateSendButtons();
|
activateSendButtons();
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
$('.mes_buttons:last').show();
|
|
||||||
generatedPromtCache = '';
|
generatedPromtCache = '';
|
||||||
|
|
||||||
//console.log("Generated text size:", text.length, text)
|
//console.log("Generated text size:", text.length, text)
|
||||||
@ -2488,7 +2487,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
activateSendButtons();
|
activateSendButtons();
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
$('.mes_buttons:last').show();
|
|
||||||
|
|
||||||
if (type !== 'quiet') {
|
if (type !== 'quiet') {
|
||||||
resolve();
|
resolve();
|
||||||
@ -2502,7 +2500,6 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
|
|||||||
activateSendButtons();
|
activateSendButtons();
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
$('.mes_buttons:last').show();
|
|
||||||
console.log(exception);
|
console.log(exception);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3080,7 +3077,6 @@ function throwCircuitBreakerError() {
|
|||||||
activateSendButtons();
|
activateSendButtons();
|
||||||
setGenerationProgress(0);
|
setGenerationProgress(0);
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
$('.mes_buttons:last').show();
|
|
||||||
throw new Error('Generate circuit breaker interruption');
|
throw new Error('Generate circuit breaker interruption');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3302,6 +3298,7 @@ export function activateSendButtons() {
|
|||||||
is_send_press = false;
|
is_send_press = false;
|
||||||
$("#send_but").css("display", "flex");
|
$("#send_but").css("display", "flex");
|
||||||
$("#send_textarea").attr("disabled", false);
|
$("#send_textarea").attr("disabled", false);
|
||||||
|
$('.mes_buttons:last').show();
|
||||||
hideStopButton();
|
hideStopButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user