aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorpapuSpartan <mcgpapu@gmail.com>2022-11-01 19:03:56 +0000
committerpapuSpartan <mcgpapu@gmail.com>2022-11-01 19:03:56 +0000
commit401350cd59555439570ba5bc95f0ac5698e372e4 (patch)
treed3c48250a4cdd0ad1fe4f8a1cf4cfbdfb45e4bfb /modules/ui.py
parent25de9df3648f6d936ec7dbbb91c6c04bc3939a62 (diff)
downloadstable-diffusion-webui-gfx803-401350cd59555439570ba5bc95f0ac5698e372e4.tar.gz
stable-diffusion-webui-gfx803-401350cd59555439570ba5bc95f0ac5698e372e4.tar.bz2
stable-diffusion-webui-gfx803-401350cd59555439570ba5bc95f0ac5698e372e4.zip
clear on the client-side again
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 447722cd..f43e79ab 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -400,19 +400,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):
- """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):
"""Given clear button, prompt, and token_counter objects, setup clear prompt button click event"""
button.click(
_js="clear_prompt",
- fn=clear_prompt,
+ fn=None,
inputs=[prompt, prompt_neg, _dummy_confirmed, token_counter],
outputs=[prompt, prompt_neg, _dummy_confirmed, token_counter],
)