diff options
author | Gleb Alekseev <alekseev.gleb@gmail.com> | 2023-10-13 15:08:59 -0300 |
---|---|---|
committer | Gleb Alekseev <alekseev.gleb@gmail.com> | 2023-10-13 15:08:59 -0300 |
commit | 44d14bc32e4a5501df04f844a00f9e18b777f7eb (patch) | |
tree | 9274907f2c97294418195d14c0fd414887bfd600 /modules/ui.py | |
parent | 5ef669de080814067961f28357256e8fe27544f4 (diff) |
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 579bab98..df327891 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -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")
|