From 493032a7afcb46f4506d48f87a08d20fcedaecc2 Mon Sep 17 00:00:00 2001 From: jtkelm2 Date: Tue, 13 Sep 2022 22:01:30 -0500 Subject: [PATCH] Update ui.py --- modules/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)