The ready sound and message can now be disabled from the config file.

This commit is contained in:
Bill Dengler 2015-04-17 15:32:12 -04:00
parent 6f4e9e920f
commit 916ca0127d
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,8 @@ hide_gui = boolean(default=False)
voice_enabled = boolean(default=False)
ask_at_exit = boolean(default=True)
use_invisible_keyboard_shorcuts = boolean(default=True)
play_ready_sound = boolean(default=True)
speak_ready_msg = boolean(default=True)
log_level = string(default="error")
[keymap]

View File

@ -242,7 +242,9 @@ class Controller(object):
for i in session_.sessions:
if session_.sessions[i].is_logged == False: continue
self.start_buffers(session_.sessions[i])
if config.app["app-settings"]["play_ready_sound"] == True:
session_.sessions[session_.sessions.keys()[0]].sound.play("ready.ogg")
if config.app["app-settings"]["speak_ready_msg"] == True:
output.speak(_(u"Ready"))
def create_ignored_session_buffer(self, session):