mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
The ready sound and message can now be disabled from the config file.
This commit is contained in:
parent
6f4e9e920f
commit
916ca0127d
@ -9,6 +9,8 @@ hide_gui = boolean(default=False)
|
|||||||
voice_enabled = boolean(default=False)
|
voice_enabled = boolean(default=False)
|
||||||
ask_at_exit = boolean(default=True)
|
ask_at_exit = boolean(default=True)
|
||||||
use_invisible_keyboard_shorcuts = 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")
|
log_level = string(default="error")
|
||||||
|
|
||||||
[keymap]
|
[keymap]
|
||||||
|
@ -242,8 +242,10 @@ class Controller(object):
|
|||||||
for i in session_.sessions:
|
for i in session_.sessions:
|
||||||
if session_.sessions[i].is_logged == False: continue
|
if session_.sessions[i].is_logged == False: continue
|
||||||
self.start_buffers(session_.sessions[i])
|
self.start_buffers(session_.sessions[i])
|
||||||
session_.sessions[session_.sessions.keys()[0]].sound.play("ready.ogg")
|
if config.app["app-settings"]["play_ready_sound"] == True:
|
||||||
output.speak(_(u"Ready"))
|
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):
|
def create_ignored_session_buffer(self, session):
|
||||||
self.accounts.append(session.settings["twitter"]["user_name"])
|
self.accounts.append(session.settings["twitter"]["user_name"])
|
||||||
|
Loading…
Reference in New Issue
Block a user