Allow wand SD gens when LLM not connected

This commit is contained in:
Cohee 2024-08-07 20:58:36 +03:00
parent 32c48cf9fa
commit f0b13d3172
1 changed files with 1 additions and 1 deletions

View File

@ -3399,7 +3399,7 @@ async function addSDGenButtons() {
$(document).on('click touchend', function (e) {
const target = $(e.target);
if (target.is(dropdown) || target.closest(dropdown).length) return;
if ((target.is(button) || target.closest(button).length) && !dropdown.is(':visible') && $('#send_but').is(':visible')) {
if ((target.is(button) || target.closest(button).length) && !dropdown.is(':visible')) {
e.preventDefault();
dropdown.fadeIn(animation_duration);