[gnome-music] Complete patch for artwork requests
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Complete patch for artwork requests
- Date: Thu, 9 May 2013 09:10:48 +0000 (UTC)
commit f93699203957b151e09a74143035647ff69fa205
Author: Guillaume Quintard <guillaume quintard gmail com>
Date: Thu May 9 11:10:02 2013 +0200
Complete patch for artwork requests
if indexOf return 0, the item is in the list, and we should return
src/albumArtCache.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/albumArtCache.js b/src/albumArtCache.js
index 27bd655..f56c028 100644
--- a/src/albumArtCache.js
+++ b/src/albumArtCache.js
@@ -105,7 +105,7 @@ const AlbumArtCache = new Lang.Class({
getFromUri: function(uri, artist, album, width, height, callback) {
if (uri == null) return;
- if (this.requested_uris.indexOf(uri) > 0) return;
+ if (this.requested_uris.indexOf(uri) >= 0) return;
this.requested_uris.push(uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]