aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authoryfszzx <yfszzx@gmail.com>2022-10-17 07:20:16 +0000
committeryfszzx <yfszzx@gmail.com>2022-10-17 07:20:16 +0000
commit5b1394bead93e5485ced5de10f1c000eea4458c6 (patch)
treec9e9974fd9c5e0d2bc0da906b4b9b128ae24022a /modules/ui.py
parenta4de699e3c235d83b5a957d08779cb41cb0781bc (diff)
parentc57919ea2a8e4a23a05d21f28928e08bbf34c59e (diff)
downloadstable-diffusion-webui-gfx803-5b1394bead93e5485ced5de10f1c000eea4458c6.tar.gz
stable-diffusion-webui-gfx803-5b1394bead93e5485ced5de10f1c000eea4458c6.tar.bz2
stable-diffusion-webui-gfx803-5b1394bead93e5485ced5de10f1c000eea4458c6.zip
speed up images history perfect
Diffstat (limited to 'modules/ui.py')
-rw-r--r--modules/ui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index ee3d0248..7b0d5a92 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -1394,7 +1394,10 @@ def create_ui(wrap_gradio_gpu_call):
component_dict = {}
def open_folder(f):
- if not os.path.isdir(f):
+ if not os.path.exists(f):
+ print(f'Folder "{f}" does not exist. After you create an image, the folder will be created.')
+ return
+ elif not os.path.isdir(f):
print(f"""
WARNING
An open_folder request was made with an argument that is not a folder.