diff options
author | ddPn08 <pyn.g.1125@gmail.com> | 2022-10-15 02:22:05 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-15 07:07:45 +0000 |
commit | 0da6c1809996f0f696d4047faf4b9c9939e26daa (patch) | |
tree | a7259d98edcbe9e5e2046acc67e5d523d072d9a3 /modules | |
parent | cd28465bf87d911965790513c37e6881e4231523 (diff) | |
download | stable-diffusion-webui-gfx803-0da6c1809996f0f696d4047faf4b9c9939e26daa.tar.gz stable-diffusion-webui-gfx803-0da6c1809996f0f696d4047faf4b9c9939e26daa.tar.bz2 stable-diffusion-webui-gfx803-0da6c1809996f0f696d4047faf4b9c9939e26daa.zip |
use "outdir_samples" if specified
Diffstat (limited to 'modules')
-rw-r--r-- | modules/images_history.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/images_history.py b/modules/images_history.py index 09c749fe..9260df8a 100644 --- a/modules/images_history.py +++ b/modules/images_history.py @@ -97,7 +97,9 @@ def delete_image(delete_num, tabname, dir_name, name, page_index, filenames, ima def show_images_history(gr, opts, tabname, run_pnginfo, switch_dict): - if tabname == "txt2img": + if opts.outdir_samples != "": + dir_name = opts.outdir_samples + elif tabname == "txt2img": dir_name = opts.outdir_txt2img_samples elif tabname == "img2img": dir_name = opts.outdir_img2img_samples |