diff options
author | jtkelm2 <feryllcuber@gmail.com> | 2022-09-14 03:01:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-14 08:27:41 +0000 |
commit | 493032a7afcb46f4506d48f87a08d20fcedaecc2 (patch) | |
tree | 4ee44029c9380d44af171c8be438cf695df31283 | |
parent | df81de0d2f5977fb21a0c2064399ba00d9c761a2 (diff) | |
download | stable-diffusion-webui-gfx803-493032a7afcb46f4506d48f87a08d20fcedaecc2.tar.gz stable-diffusion-webui-gfx803-493032a7afcb46f4506d48f87a08d20fcedaecc2.tar.bz2 stable-diffusion-webui-gfx803-493032a7afcb46f4506d48f87a08d20fcedaecc2.zip |
Update ui.py
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py index 2fdaa422..ae064be5 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -89,7 +89,7 @@ def save_files(js_data, images, index): data = json.loads(js_data)
- if index > -1 and opts.save_selected_only and len(images) > 1 and (index > 0 or not opts.return_grid): # ensures we are looking at a specific picture, we have save_selected_only, and there's more than a single image (for correct seed logging in case of return_grid)
+ if index > -1 and opts.save_selected_only and (index > 0 or not opts.return_grid): # ensures we are looking at a specific non-grid picture, and we have save_selected_only
images = [images[index]]
data["seed"] += (index - 1 if opts.return_grid else index)
|