mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
Add '--no-prompt-history' cmd args for disable last generation prompt history
This commit is contained in:
parent
02a4ceabdd
commit
c50b7e4eff
3 changed files with 3 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ def get_override_settings(params, *, skip_fields=None):
|
|||
|
||||
def connect_paste(button, paste_fields, input_comp, override_settings_component, tabname):
|
||||
def paste_func(prompt):
|
||||
if not prompt and not shared.cmd_opts.hide_ui_dir_config:
|
||||
if not prompt and not shared.cmd_opts.hide_ui_dir_config and not shared.cmd_opts.no_prompt_history:
|
||||
filename = os.path.join(data_path, "params.txt")
|
||||
try:
|
||||
with open(filename, "r", encoding="utf8") as file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue