mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
#39: Add option to disable new behavior.
This commit is contained in:
parent
a60d00d0dc
commit
24fa7a1815
@ -14,7 +14,7 @@ speak_ready_msg = boolean(default=True)
|
||||
log_level = string(default="error")
|
||||
use_slow_audio_algo = boolean(default=False)
|
||||
load_keymap = string(default="default.keymap")
|
||||
|
||||
use_Codeofdusk_audio_handlers=boolean(default=True)
|
||||
[proxy]
|
||||
server = string(default="")
|
||||
port = string(default="")
|
||||
|
@ -61,6 +61,7 @@ class globalSettingsController(object):
|
||||
self.dialog.set_value("general", "disable_sapi5", config.app["app-settings"]["voice_enabled"])
|
||||
self.dialog.set_value("general", "hide_gui", config.app["app-settings"]["hide_gui"])
|
||||
self.dialog.set_value("general", "use_slow_audio_algo", config.app["app-settings"]["use_slow_audio_algo"])
|
||||
self.dialog.set_value("general", "use_Codeofdusk_audio_handlers", config.app["app-settings"]["use_Codeofdusk_audio_handlers"])
|
||||
self.dialog.create_proxy()
|
||||
self.dialog.set_value("proxy", "server", config.app["proxy"]["server"])
|
||||
self.dialog.set_value("proxy", "port", config.app["proxy"]["port"])
|
||||
@ -89,6 +90,8 @@ class globalSettingsController(object):
|
||||
if config.app["app-settings"]["use_slow_audio_algo"] != self.dialog.get_value("general", "use_slow_audio_algo"):
|
||||
config.app["app-settings"]["use_slow_audio_algo"] = self.dialog.get_value("general", "use_slow_audio_algo")
|
||||
#Todo: clean memmos.
|
||||
if config.app["app-settings"]["use_Codeofdusk_audio_handlers"] != self.dialog.get_value("general", "use_Codeofdusk_audio_handlers"):
|
||||
config.app["app-settings"]["use_Codeofdusk_audio_handlers"] = self.dialog.get_value("general", "use_Codeofdusk_audio_handlers")
|
||||
if config.app["proxy"]["server"] != self.dialog.get_value("proxy", "server") or config.app["proxy"]["port"] != self.dialog.get_value("proxy", "port") or config.app["proxy"]["user"] != self.dialog.get_value("proxy", "user") or config.app["proxy"]["password"] != self.dialog.get_value("proxy", "password"):
|
||||
if self.is_started == True:
|
||||
self.needs_restart = True
|
||||
|
@ -38,6 +38,8 @@ class general(wx.Panel, baseDialog.BaseWXDialog):
|
||||
sizer.Add(kmbox, 0, wx.ALL, 5)
|
||||
self.use_slow_audio_algo= wx.CheckBox(self, -1, _(U"Use slow audio tweet detection algorithm (improves audio tweet detection accuracy at the cost of performance)"))
|
||||
sizer.Add(self.use_slow_audio_algo, 0, wx.ALL, 5)
|
||||
self.use_Codeofdusk_audio_handlers= wx.CheckBox(self, -1, _(U"Use Codeofdusk's tweet interaction handlers (intelegently handle audio tweets, may impact client performance on very slow connections)"))
|
||||
sizer.Add(self.use_Codeofdusk_audio_handlers, 0, wx.ALL, 5)
|
||||
self.SetSizer(sizer)
|
||||
|
||||
class proxy(wx.Panel, baseDialog.BaseWXDialog):
|
||||
|
Loading…
Reference in New Issue
Block a user