mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
new setting: Extra text to add before <...> when adding extra network to prompt
This commit is contained in:
parent
5fd1158b9e
commit
aaa367e35c
2 changed files with 2 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ function cardClicked(tabname, textToAdd, allowNegativePrompt){
|
|||
var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea")
|
||||
|
||||
if(! tryToRemoveExtraNetworkFromPrompt(textarea, textToAdd)){
|
||||
textarea.value = textarea.value + " " + textToAdd
|
||||
textarea.value = textarea.value + opts.extra_networks_add_text_separator + textToAdd
|
||||
}
|
||||
|
||||
updateInput(textarea)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue