Hides the audio's list when there is only one

This commit is contained in:
Manuel Cortez 2016-02-25 17:48:27 -06:00
parent db6f233975
commit 6499904f0f

View File

@ -269,6 +269,9 @@ class audio(postController):
s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"])) s = u"{0} - {1}. {2}".format(i["title"], i["artist"], utils.seconds_to_string(i["duration"]))
self.dialog.insert_audio(s) self.dialog.insert_audio(s)
self.dialog.list.SetSelection(0) self.dialog.list.SetSelection(0)
if len(self.post) == 1:
self.dialog.list.Enable(False)
self.dialog.title.SetFocus()
def handle_changes(self, *args, **kwargs): def handle_changes(self, *args, **kwargs):
p = self.dialog.get_audio() p = self.dialog.get_audio()