Restored access to audios by users

This commit is contained in:
2018-12-09 05:22:37 -06:00
parent bb26d45f1d
commit ba5d734a05
3 changed files with 49 additions and 60 deletions

View File

@@ -16,11 +16,11 @@ class timelineDialog(widgetUtils.BaseDialog):
userSizer.Add(self.cb, 0, wx.ALL, 5)
actionsstatic = wx.StaticBox(panel, label=_(u"Buffer type"))
self.wall = wx.RadioButton(panel, wx.NewId(), _(u"&Wall posts"), style=wx.RB_GROUP)
# self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
self.audio = wx.RadioButton(panel, wx.NewId(), _(u"Audio"))
self.friends = wx.RadioButton(panel, wx.NewId(), _(u"Friends"))
radioSizer = wx.StaticBoxSizer(actionsstatic, wx.HORIZONTAL)
radioSizer.Add(self.wall, 0, wx.ALL, 5)
# radioSizer.Add(self.audio, 0, wx.ALL, 5)
radioSizer.Add(self.audio, 0, wx.ALL, 5)
radioSizer.Add(self.friends, 0, wx.ALL, 5)
sizer.Add(radioSizer, 0, wx.ALL, 5)
ok = wx.Button(panel, wx.ID_OK, _(u"&OK"))
@@ -37,9 +37,9 @@ class timelineDialog(widgetUtils.BaseDialog):
return self.cb.GetValue()
def get_buffer_type(self):
# if self.audio.GetValue() == True:
# return "audio"
if self.wall.GetValue() == True:
if self.audio.GetValue() == True:
return "audio"
elif self.wall.GetValue() == True:
return "wall"
elif self.friends.GetValue() == True:
return "friends"