mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-31 05:10:45 -06:00
Add indicate_audio, indicate_geo and indicate_img settings.
This commit is contained in:
parent
6bb534d250
commit
5eff1b77fe
@ -22,6 +22,9 @@ input_device = string(default="Default")
|
|||||||
output_device = string(default="Default")
|
output_device = string(default="Default")
|
||||||
session_mute = boolean(default=False)
|
session_mute = boolean(default=False)
|
||||||
current_soundpack = string(default="default")
|
current_soundpack = string(default="default")
|
||||||
|
indicate_audio = boolean(default=True)
|
||||||
|
indicate_geo = boolean(default=True)
|
||||||
|
indicate_img = boolean(default=True)
|
||||||
sndup_api_key = string(default="")
|
sndup_api_key = string(default="")
|
||||||
|
|
||||||
[other_buffers]
|
[other_buffers]
|
||||||
|
@ -155,6 +155,9 @@ class accountSettingsController(globalSettingsController):
|
|||||||
self.dialog.set_value("sound", "output", self.config["sound"]["output_device"])
|
self.dialog.set_value("sound", "output", self.config["sound"]["output_device"])
|
||||||
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
|
self.dialog.set_value("sound", "session_mute", self.config["sound"]["session_mute"])
|
||||||
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
|
self.dialog.set_value("sound", "soundpack", self.config["sound"]["current_soundpack"])
|
||||||
|
self.dialog.set_value("sound", "indicate_audio", self.config["sound"]["indicate_audio"])
|
||||||
|
self.dialog.set_value("sound", "indicate_geo", self.config["sound"]["indicate_geo"])
|
||||||
|
self.dialog.set_value("sound", "indicate_img", self.config["sound"]["indicate_img"])
|
||||||
self.dialog.create_services()
|
self.dialog.create_services()
|
||||||
# if self.config["services"]["pocket_access_token"] == "":
|
# if self.config["services"]["pocket_access_token"] == "":
|
||||||
# self.dialog.services.set_pocket(False)
|
# self.dialog.services.set_pocket(False)
|
||||||
@ -231,6 +234,9 @@ class accountSettingsController(globalSettingsController):
|
|||||||
self.config["sound"]["volume"] = self.dialog.get_value("sound", "volumeCtrl")/100.0
|
self.config["sound"]["volume"] = self.dialog.get_value("sound", "volumeCtrl")/100.0
|
||||||
self.config["sound"]["session_mute"] = self.dialog.get_value("sound", "session_mute")
|
self.config["sound"]["session_mute"] = self.dialog.get_value("sound", "session_mute")
|
||||||
self.config["sound"]["current_soundpack"] = self.dialog.sound.get("soundpack")
|
self.config["sound"]["current_soundpack"] = self.dialog.sound.get("soundpack")
|
||||||
|
self.config["sound"]["indicate_audio"] = self.dialog.get_value("sound", "indicate_audio")
|
||||||
|
self.config["sound"]["indicate_geo"] = self.dialog.get_value("sound", "indicate_geo")
|
||||||
|
self.config["sound"]["indicate_img"] = self.dialog.get_value("sound", "indicate_img")
|
||||||
self.buffer.session.sound.config = self.config["sound"]
|
self.buffer.session.sound.config = self.config["sound"]
|
||||||
self.buffer.session.sound.check_soundpack()
|
self.buffer.session.sound.check_soundpack()
|
||||||
self.config["sound"]["sndup_api_key"] = self.dialog.get_value("services", "apiKey")
|
self.config["sound"]["sndup_api_key"] = self.dialog.get_value("services", "apiKey")
|
||||||
|
@ -276,6 +276,12 @@ class sound(wx.Panel):
|
|||||||
soundBox.Add(soundpack_label, 0, wx.ALL, 5)
|
soundBox.Add(soundpack_label, 0, wx.ALL, 5)
|
||||||
soundBox.Add(self.soundpack, 0, wx.ALL, 5)
|
soundBox.Add(self.soundpack, 0, wx.ALL, 5)
|
||||||
sizer.Add(soundBox, 0, wx.ALL, 5)
|
sizer.Add(soundBox, 0, wx.ALL, 5)
|
||||||
|
self.indicate_audio = wx.CheckBox(self, -1, _(u"Indicate audio tweets with sound"))
|
||||||
|
sizer.Add(self.indicate_audio, 0, wx.ALL, 5)
|
||||||
|
self.indicate_geo = wx.CheckBox(self, -1, _(u"Indicate geotweets with sound"))
|
||||||
|
sizer.Add(self.indicate_geo, 0, wx.ALL, 5)
|
||||||
|
self.indicate_img = wx.CheckBox(self, -1, _(u"Indicate tweets containing images with sound"))
|
||||||
|
sizer.Add(self.indicate_img, 0, wx.ALL, 5)
|
||||||
self.SetSizer(sizer)
|
self.SetSizer(sizer)
|
||||||
|
|
||||||
def get(self, control):
|
def get(self, control):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user