updating the displayed generation info when user clicks images in the gallery. feature request 4415

This commit is contained in:
Liam
2022-11-09 15:24:31 -05:00
parent ac08562854
commit 81f2575df9
4 changed files with 36 additions and 2 deletions

View File

@@ -145,6 +145,8 @@ class Script(scripts.Script):
state.job_count = job_count
images = []
all_prompts = []
infotexts = []
for n, args in enumerate(jobs):
state.job = f"{state.job_no + 1} out of {state.job_count}"
@@ -157,5 +159,7 @@ class Script(scripts.Script):
if checkbox_iterate:
p.seed = p.seed + (p.batch_size * p.n_iter)
all_prompts += proc.all_prompts
infotexts += proc.infotexts
return Processed(p, images, p.seed, "")
return Processed(p, images, p.seed, "", all_prompts=all_prompts, infotexts=infotexts)