aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-10-14 04:30:31 +0000
committerGitHub <noreply@github.com>2023-10-14 04:30:31 +0000
commit499543cf1deb382ef9414e601ebef0015248b7ea (patch)
tree933d2d0ced515e149b118b4980e73a4ddd838c37 /modules/ui.py
parent902afa6b4cdaba5820d07631b039158a56ab1403 (diff)
parent44d14bc32e4a5501df04f844a00f9e18b777f7eb (diff)
downloadstable-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.py2
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")