Commits

Damián Nohales committed ba08577

Analyze cache on quit app.

  • Participants
  • Parent commits b3c6fd4

Comments (0)

Files changed (2)

File lib/SharkDown.py

 from Song import Song
 from Song import SongCoverThread
 from PlayListStyleWidget import PlayListStyleWidget
+import covercache
 import guihelpers
 import pickle
 import gtk
             response = gtk.RESPONSE_YES
 
         if response == gtk.RESPONSE_YES:
+            covercache.analyze_cache_limit()
             self.save_playlist("%s/.gsharkdown/playlist.pkl" % os.environ.get("HOME"))
             self.save_downqueue("%s/.gsharkdown/downqueue.pkl" % os.environ.get("HOME"))
             self.downloads.stop_all_downloads()
             conn.close()
             file.close()
             os.rename(covercache.get_filename(self.song)+".incoming", covercache.get_filename(self.song))
-            covercache.analyze_cache_limit()
             
             self.song.cover_pixbuf = loader.get_pixbuf()
         except Exception, e: