added option to play notification sound or not

This commit is contained in:
Gleb Alekseev
2023-10-13 15:08:59 -03:00
parent 5ef669de08
commit 44d14bc32e
2 changed files with 2 additions and 1 deletions

View File

@@ -1286,7 +1286,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")