diff --git a/src/lib/Generate.svelte b/src/lib/Generate.svelte index de1d150..037ca7b 100644 --- a/src/lib/Generate.svelte +++ b/src/lib/Generate.svelte @@ -118,16 +118,20 @@ resetPromptMatrix() } - // disable the Generate button when these conditions are met - $: disableGenerate = + // disable the Enqueue button when these conditions are met + $: disableEnqueue = !$stableDiffusionDirectory || // no stable diffusion directory !$pythonPath || // python path is not set $prompt.trim() === "" || // prompt is empty numPromptTokens > 80 || // giving user a bit more leeway than strictly 75 since we're estimating - $isGenerating || // disable while generating // if there are custom vars, make sure they're all filled ($extractedVars.length && !$allCustomVarsAreFilled) + // disable the Generate button when these conditions are met + $: disableGenerate = + disableEnqueue || // all the conditions for disabling the Enqueue button + $isGenerating // and in addition disable while generating + $: if ($startQueue) { console.log("processing queue") startQueue.set(false) @@ -378,7 +382,7 @@