forgot to clear neg prompt after moving to back. Add tooltip to hints

This commit is contained in:
papuSpartan
2022-10-21 17:24:04 -05:00
parent 0c7cf08b3d
commit 700340448b
3 changed files with 10 additions and 9 deletions

View File

@@ -17,6 +17,7 @@ titles = {
"\u2199\ufe0f": "Read generation parameters from prompt or last generation if prompt is empty into user interface.",
"\u{1f4c2}": "Open images output directory",
"\u{1f4be}": "Save style",
"\U0001F5D1": "Clear prompt"
"\u{1f4cb}": "Apply selected styles to current prompt",
"Inpaint a part of image": "Draw a mask over an image, and the script will regenerate the masked area with content according to prompt",

View File

@@ -162,7 +162,7 @@ function selected_tab_id() {
}
function clear_prompt(_, confirmed,_steps) {
function clear_prompt(_, _prompt_neg, confirmed,_steps) {
if(confirm("Delete prompt?")) {
confirmed = true
@@ -176,7 +176,7 @@ return [_, confirmed]
update_token_counter("txt2img_token_button")
}
return [_, confirmed,_steps]
return [_, _prompt_neg, confirmed,_steps]
}