background: when updating image remove old one from cache

We're removing the new content from the cache instead of the
old content.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=697395
This commit is contained in:
Ray Strode 2013-04-04 16:13:07 -04:00
parent 9eae74357a
commit e98c6ff31b

View File

@ -426,7 +426,7 @@ const Background = new Lang.Class({
content.brightness = this._brightness;
content.vignette_sharpness = this._vignetteSharpness;
this._cache.removeImageContent(content);
this._cache.removeImageContent(this._images[index].content);
this._images[index].content = content;
this._watchCacheFile(filename);
},