From e98c6ff31b96dd6ab26f87e6330266a24925fb88 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 4 Apr 2013 16:13:07 -0400 Subject: [PATCH] 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 --- js/ui/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/background.js b/js/ui/background.js index 4994c05a3..2dbde4ade 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -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); },