mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 03:32:37 +00:00
fix js func signature and not forget to initialize confirmation var to prevent exception upon cancelling confirmation
This commit is contained in:
@@ -429,10 +429,12 @@ def create_seed_inputs():
|
||||
return seed, reuse_seed, subseed, reuse_subseed, subseed_strength, seed_resize_from_h, seed_resize_from_w, seed_checkbox
|
||||
|
||||
|
||||
def clear_prompt(_prompt, _prompt_neg, confirmed, _token_counter):
|
||||
def clear_prompt(prompt, _prompt_neg, confirmed, _token_counter):
|
||||
"""Given confirmation from a user on the client-side, go ahead with clearing prompt"""
|
||||
if confirmed:
|
||||
return ["", "", confirmed, update_token_counter("", 1)]
|
||||
else:
|
||||
return [prompt, _prompt_neg, confirmed, _token_counter]
|
||||
|
||||
|
||||
def connect_clear_prompt(button, prompt, prompt_neg, _dummy_confirmed, token_counter):
|
||||
|
Reference in New Issue
Block a user