From 7036f5c5ca6634afb3463f474dc6a4d0881a2842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Thu, 30 Jun 2016 09:30:17 -0500 Subject: [PATCH] If an audio album is not loaded, play and play all buttons are not enabled --- src/controller/buffers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index cf115a9..399c6ea 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -393,6 +393,8 @@ class audioAlbum(audioBuffer): def create_tab(self, parent): self.tab = home.audioAlbumTab(parent) + self.tab.play.Enable(False) + self.tab.play_all.Enable(False) def connect_events(self): super(audioAlbum, self).connect_events() @@ -403,7 +405,8 @@ class audioAlbum(audioBuffer): self.can_get_items = True self.tab.load.Enable(False) wx.CallAfter(self.get_items) - + self.tab.play.Enable(True) + self.tab.play_all.Enable(True) class empty(object):