banshee r4253 - in trunk/banshee: . src/Extensions/Banshee.CoverArt/Banshee.CoverArt
- From: jwillcox svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4253 - in trunk/banshee: . src/Extensions/Banshee.CoverArt/Banshee.CoverArt
- Date: Fri, 25 Jul 2008 20:19:55 +0000 (UTC)
Author: jwillcox
Date: Fri Jul 25 20:19:55 2008
New Revision: 4253
URL: http://svn.gnome.org/viewvc/banshee?rev=4253&view=rev
Log:
2008-07-25 James Willcox <snorp snorp net>
* src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtService.cs:
Properly respond to TrackChanged events, and only fetch cover art
if something changed that we care about.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtService.cs
Modified: trunk/banshee/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtService.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtService.cs Fri Jul 25 20:19:55 2008
@@ -183,7 +183,17 @@
private void OnTracksChanged (Source sender, TrackEventArgs args)
{
- FetchCoverArt ();
+ if (args.ChangedFields == null) {
+ FetchCoverArt ();
+ } else {
+ foreach (Hyena.Query.QueryField field in args.ChangedFields) {
+ if (field == Banshee.Query.BansheeQuery.AlbumField ||
+ field == Banshee.Query.BansheeQuery.ArtistField) {
+ FetchCoverArt ();
+ break;
+ }
+ }
+ }
}
string IService.ServiceName {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]