Show proper image in the download dialog
authorIvan Frade <ivan.frade@gmail.com>
Sun, 28 Jun 2009 18:15:05 +0000 (21:15 +0300)
committerIvan Frade <ivan.frade@gmail.com>
Sun, 28 Jun 2009 18:15:05 +0000 (21:15 +0300)
Text and image were mismatched previously. Now we show the _last_
album art retrieved. Not very usefull to detect problematic album
downloads...

src/download_dialog.py

index 7c986a2..2a61af9 100644 (file)
@@ -41,9 +41,6 @@ class MussorgskyAlbumArtDownloadDialog (gtk.Dialog):
         current = 1
         
         for (artist, album) in artist_albums:
-            self.status_label.set_text ("Retrieving (%d/%d)" % (current, TOTAL))
-            self.current_label.set_markup ("<b>%s - %s</b>" % (artist, album))
-
             while (gtk.events_pending()):
                 gtk.main_iteration()
 
@@ -57,7 +54,10 @@ class MussorgskyAlbumArtDownloadDialog (gtk.Dialog):
                 print str(e)
                 self.album_art.set_from_stock (gtk.STOCK_CDROM, gtk.ICON_SIZE_DIALOG)
                 continue
-                
+
+            self.status_label.set_text ("Retrieved (%d/%d)" % (current, TOTAL))
+            self.current_label.set_markup ("<b>%s - %s</b>" % (artist, album))
+              
             if (thumb):
                 self.album_art.set_from_file (thumb)
             else: