summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clMonty.py3
-rw-r--r--winMain.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/clMonty.py b/clMonty.py
index 2878f4d..0e3f444 100644
--- a/clMonty.py
+++ b/clMonty.py
@@ -58,13 +58,12 @@ class Monty(QtCore.QObject):
except:
self._client=None
return False
- print "Connected to "+host+":"+str(port)+""
- print "MPD version: "+self._client.mpd_version
self._raiseEvent('onConnect', None)
try:
self._updateLib()
self._updatePlaylist()
+ self._updateCurrentSong()
self._timerID=self.startTimer(300)
except Exception:
print_exc()
diff --git a/winMain.py b/winMain.py
index e9df216..c26666c 100644
--- a/winMain.py
+++ b/winMain.py
@@ -198,6 +198,7 @@ class wgAlbumCover(QtGui.QWidget):
def __init__(self,parent=None):
QtGui.QWidget.__init__(self,parent)
monty.addListener('onSongChange', self.onSongChange)
+ monty.addListener('onReady', self.onReady)
monty.addListener('onDisconnect', self.onDisconnect)
self.setMinimumSize(64,64)
@@ -242,6 +243,10 @@ class wgAlbumCover(QtGui.QWidget):
print "Failed to load %s"%(file)
self.update()
+ def onReady(self, params):
+ self.onSongChange(None)
+ self.update()
+
def onDisconnect(self, params):
self.img=None
self.update()