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:
parent
9eae74357a
commit
e98c6ff31b
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user