Merge pull request #13631 from galekseev/master

added option to play notification sound or not
This commit is contained in:
AUTOMATIC1111
2023-10-14 07:30:31 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -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")