Hides the audio's list when there is only one
This commit is contained in:
parent
db6f233975
commit
6499904f0f
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user