fix progress bar behavior for "Prompts from file or textbox" script

This commit is contained in:
Zaprudin Aleksey 2023-01-13 22:25:33 +05:00
parent 82725f0ac4
commit d753a9df95

View File

@ -146,7 +146,7 @@ class Script(scripts.Script):
else:
args = {"prompt": line}
n_iter = args.get("n_iter", 1)
n_iter = args.get("n_iter", p.n_iter)
if n_iter != 1:
job_count += n_iter
else: