If an audio album is not loaded, play and play all buttons are not enabled
This commit is contained in:
parent
a943da1812
commit
7036f5c5ca
@ -393,6 +393,8 @@ class audioAlbum(audioBuffer):
|
|||||||
|
|
||||||
def create_tab(self, parent):
|
def create_tab(self, parent):
|
||||||
self.tab = home.audioAlbumTab(parent)
|
self.tab = home.audioAlbumTab(parent)
|
||||||
|
self.tab.play.Enable(False)
|
||||||
|
self.tab.play_all.Enable(False)
|
||||||
|
|
||||||
def connect_events(self):
|
def connect_events(self):
|
||||||
super(audioAlbum, self).connect_events()
|
super(audioAlbum, self).connect_events()
|
||||||
@ -403,7 +405,8 @@ class audioAlbum(audioBuffer):
|
|||||||
self.can_get_items = True
|
self.can_get_items = True
|
||||||
self.tab.load.Enable(False)
|
self.tab.load.Enable(False)
|
||||||
wx.CallAfter(self.get_items)
|
wx.CallAfter(self.get_items)
|
||||||
|
self.tab.play.Enable(True)
|
||||||
|
self.tab.play_all.Enable(True)
|
||||||
|
|
||||||
class empty(object):
|
class empty(object):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user