diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-10-14 04:30:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 04:30:31 +0000 |
commit | 499543cf1deb382ef9414e601ebef0015248b7ea (patch) | |
tree | 933d2d0ced515e149b118b4980e73a4ddd838c37 /modules/ui.py | |
parent | 902afa6b4cdaba5820d07631b039158a56ab1403 (diff) | |
parent | 44d14bc32e4a5501df04f844a00f9e18b777f7eb (diff) | |
download | stable-diffusion-webui-gfx803-499543cf1deb382ef9414e601ebef0015248b7ea.tar.gz stable-diffusion-webui-gfx803-499543cf1deb382ef9414e601ebef0015248b7ea.tar.bz2 stable-diffusion-webui-gfx803-499543cf1deb382ef9414e601ebef0015248b7ea.zip |
Merge pull request #13631 from galekseev/master
added option to play notification sound or not
Diffstat (limited to 'modules/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 3d1f5285..bcf39199 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1296,7 +1296,7 @@ def create_ui(): loadsave.setup_ui()
- if os.path.exists(os.path.join(script_path, "notification.mp3")):
+ if os.path.exists(os.path.join(script_path, "notification.mp3")) and shared.opts.notification_audio:
gr.Audio(interactive=False, value=os.path.join(script_path, "notification.mp3"), elem_id="audio_notification", visible=False)
footer = shared.html("footer.html")
|