Add '--no-prompt-history' cmd args for disable last generation prompt history

This commit is contained in:
10sa
2024-03-09 11:33:45 +09:00
parent 02a4ceabdd
commit c50b7e4eff
3 changed files with 3 additions and 2 deletions

View File

@@ -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: